Sfoglia il codice sorgente

Fix can't unset exported typed array element when the type is set to Node

jsjtxietian 1 anno fa
parent
commit
a46901278d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      editor/editor_properties.cpp

+ 1 - 1
editor/editor_properties.cpp

@@ -2818,7 +2818,7 @@ void EditorPropertyNodePath::_node_assign() {
 }
 
 void EditorPropertyNodePath::_node_clear() {
-	emit_changed(get_edited_property(), NodePath());
+	emit_changed(get_edited_property(), Variant());
 	update_property();
 }