prevent redraws when an inactive Particles2D node is present
This commit is contained in:
parent
a9acdd84b7
commit
f6f7ada91b
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue