From 9f0c6a60095025cb7f67a36ffa81e8709d645a66 Mon Sep 17 00:00:00 2001 From: hbina085 Date: Fri, 28 Jun 2019 23:09:59 -0400 Subject: Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended. --- scene/resources/particles_material.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scene/resources/particles_material.cpp') diff --git a/scene/resources/particles_material.cpp b/scene/resources/particles_material.cpp index a80a57a09c..691d73c181 100644 --- a/scene/resources/particles_material.cpp +++ b/scene/resources/particles_material.cpp @@ -184,7 +184,8 @@ void ParticlesMaterial::_update_shader() { } break; case EMISSION_SHAPE_DIRECTED_POINTS: { code += "uniform sampler2D emission_texture_normal : hint_black;\n"; - } //fallthrough + FALLTHROUGH; + } case EMISSION_SHAPE_POINTS: { code += "uniform sampler2D emission_texture_points : hint_black;\n"; code += "uniform int emission_texture_point_count;\n"; -- cgit v1.2.3