1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Adds automatic update for region_rect

When changing the texture region for a StyleBox, the regions was not updating automatically in the Texture editor.

(cherry picked from commit 7d7727bade)
This commit is contained in:
Zak
2019-06-28 11:49:24 +03:00
committed by Rémi Verschelde
parent bca2633f93
commit d94323e37b
2 changed files with 2 additions and 1 deletions

View File

@@ -858,7 +858,7 @@ void TextureRegionEditor::_changed_callback(Object *p_changed, const char *p_pro
if (!is_visible())
return;
if (p_prop == StringName("atlas") || p_prop == StringName("texture"))
if (p_prop == StringName("atlas") || p_prop == StringName("texture") || p_prop == StringName("region"))
_edit_region();
}