diff options
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 7bbc0a5ec5..b9b68127db 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -82,7 +82,7 @@ Dictionary Control::_edit_get_state() const { } void Control::_edit_set_state(const Dictionary &p_state) { - ERR_FAIL_COND((p_state.size() <= 0) || + ERR_FAIL_COND(p_state.is_empty() || !p_state.has("rotation") || !p_state.has("scale") || !p_state.has("pivot") || !p_state.has("anchors") || !p_state.has("offsets") || !p_state.has("layout_mode") || !p_state.has("anchors_layout_preset")); |