diff options
author | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-02-13 00:34:16 +0100 |
---|---|---|
committer | Markus Sauermann <6299227+Sauermann@users.noreply.github.com> | 2023-02-13 08:19:00 +0100 |
commit | 34a7fc744762dcf66eff7e3b5e4d46e09e7c0bdc (patch) | |
tree | f8e4e4457b66c45a704ffa41d99c9d4a52a6d243 /scene/main/viewport.h | |
parent | 72c5b56d04f18c7ab078cb543d9dc68d05958d11 (diff) | |
download | redot-engine-34a7fc744762dcf66eff7e3b5e4d46e09e7c0bdc.tar.gz |
Fix some ways to create inconsistent Viewport sizes
In the editor, it was possible to set the size of a `SubViewport` even
in cases where a parent `SubViewportContainer` had stretch enabled.
This PR disables editing a `SubViewport.size` while the parent disallows
it and it makes necessary adjustments during `NOTIFICATION_ENTER_TREE`.
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r-- | scene/main/viewport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h index 055fad5369..5213c0db01 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -784,6 +784,7 @@ public: virtual Transform2D get_screen_transform_internal(bool p_absolute_position = false) const override; virtual Transform2D get_popup_base_transform() const override; + void _validate_property(PropertyInfo &p_property) const; SubViewport(); ~SubViewport(); }; |