Răsfoiți Sursa

Revert "Add size check in Control._edit_set_state to prevent crash"

This reverts commit ef1d58f034233a0d8b5d0b5dbf539e851ffc726c.
Rémi Verschelde 4 ani în urmă
părinte
comite
372b1b8f68
1 a modificat fișierele cu 0 adăugiri și 4 ștergeri
  1. 0 4
      scene/gui/control.cpp

+ 0 - 4
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"]);