mirror of
https://github.com/godotengine/godot.git
synced 2024-09-21 06:52:33 +00:00
Fix Control._edit_set_state crash
This commit is contained in:
parent
4de0768cdb
commit
05f5a43cad
|
@ -73,6 +73,9 @@ Dictionary Control::_edit_get_state() const {
|
|||
}
|
||||
|
||||
void Control::_edit_set_state(const Dictionary &p_state) {
|
||||
ERR_FAIL_COND((p_state.size() <= 0) ||
|
||||
!p_state.has("rotation") || !p_state.has("scale") ||
|
||||
!p_state.has("pivot") || !p_state.has("anchors") || !p_state.has("offsets"));
|
||||
Dictionary state = p_state;
|
||||
|
||||
set_rotation(state["rotation"]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user