diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-03-04 12:06:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-03-04 12:06:58 +0100 |
commit | 372b1b8f68424858f43710126c340af8a4accb48 (patch) | |
tree | e80e8fc2c957f3c6d5e1e4df42598bb7a4639626 /scene/gui/control.cpp | |
parent | dd1881ae19c9c00cc1215703dcda36b2c6af33f2 (diff) |
Revert "Add size check in Control._edit_set_state to prevent crash"
This reverts commit ef1d58f034233a0d8b5d0b5dbf539e851ffc726c.
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index c625d6a2f3..bff3024e38 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -73,10 +73,6 @@ Dictionary Control::_edit_get_state() const { } void Control::_edit_set_state(const Dictionary &p_state) { - ERR_FAIL_COND((p_state.size() <= 0) || - p_state["rotation"].is_null() || p_state["scale"].is_null() || - p_state["pivot"].is_null() || p_state["anchors"].is_null() || p_state["offsets"].is_null()); - Dictionary state = p_state; set_rotation(state["rotation"]); |