prevent redraws when an inactive Particles2D node is present

This commit is contained in:
Marcin Zawiejski 2018-06-20 22:44:11 +02:00
parent a9acdd84b7
commit f6f7ada91b
1 changed files with 3 additions and 0 deletions

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();