diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 14:18:12 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-02 14:18:12 +0100 |
commit | 910cf9a9b3b8a8e617ad21ad9e18d49f16e82eb1 (patch) | |
tree | 3243d77dccf226eeb3d0ad1ecd746c8003f07c84 /scene/3d | |
parent | b3c2db954fc30a01bd6e85972a0514db269d66f9 (diff) | |
parent | 92ebbf2c0acc232ba0818a5dcb1d3dfc4dd5df67 (diff) |
Merge pull request #67810 from MrBlockers/reged-fixes
Fix multiple issues with region editor
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/sprite_3d.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index be6eab2178..d69953fee5 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -680,6 +680,7 @@ void Sprite3D::set_region_enabled(bool p_region) { region = p_region; _queue_redraw(); + notify_property_list_changed(); } bool Sprite3D::is_region_enabled() const { @@ -781,6 +782,10 @@ void Sprite3D::_validate_property(PropertyInfo &p_property) const { if (p_property.name == "frame_coords") { p_property.usage |= PROPERTY_USAGE_KEYING_INCREMENTS; } + + if (!region && (p_property.name == "region_rect")) { + p_property.usage = PROPERTY_USAGE_NO_EDITOR; + } } void Sprite3D::_bind_methods() { |