Merge pull request #19682 from dragmz/particles_redraw_fix
Prevent redraws when an inactive Particles2D node is present
This commit is contained in:
commit
5af08779b9
1 changed files with 3 additions and 0 deletions
|
@ -832,6 +832,9 @@ void RasterizerCanvasGLES3::_canvas_item_render_commands(Item *p_item, Item *cur
|
||||||
if (!particles)
|
if (!particles)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (particles->inactive && !particles->emitting)
|
||||||
|
break;
|
||||||
|
|
||||||
glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1); //not used, so keep white
|
glVertexAttrib4f(VS::ARRAY_COLOR, 1, 1, 1, 1); //not used, so keep white
|
||||||
|
|
||||||
VisualServerRaster::redraw_request();
|
VisualServerRaster::redraw_request();
|
||||||
|
|
Loading…
Reference in a new issue