Merge pull request #29133 from KoBeWi/ninja_modulate

Don't modulate canvas on invisible color change
This commit is contained in:
Rémi Verschelde 2019-05-24 15:45:24 +02:00 committed by GitHub
commit d1b4b62eb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}