You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Don't modulate canvas on invisible color change
This commit is contained in:
@@ -70,7 +70,7 @@ void CanvasModulate::_bind_methods() {
|
||||
void CanvasModulate::set_color(const Color &p_color) {
|
||||
|
||||
color = p_color;
|
||||
if (is_inside_tree()) {
|
||||
if (is_visible_in_tree()) {
|
||||
VS::get_singleton()->canvas_set_modulate(get_canvas(), color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user