You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
prevent redraws when an inactive Particles2D node is present
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user