You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +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.
This commit is contained in:
@@ -875,7 +875,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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user