Merge pull request #19682 from dragmz/particles_redraw_fix

Prevent redraws when an inactive Particles2D node is present
This commit is contained in:
Max Hilbrunner 2018-07-03 16:13:33 +02:00 committed by GitHub
commit 5af08779b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -832,6 +832,9 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur
if (!particles)
break;
if (particles->inactive && !particles->emitting)
break;
glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1); //not used, so keep white
VisualServerRaster::redraw_request();