Explorar o código

Make dict erase node sequenced godotengine#37477

* Updated macro call to make the visual Dictionary Erase node sequenced.
Zak Grumbles %!s(int64=5) %!d(string=hai) anos
pai
achega
d648f77119
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/variant_call.cpp

+ 1 - 1
core/variant_call.cpp

@@ -1957,7 +1957,7 @@ void register_variant_methods() {
 	ADDFUNC0NC(DICTIONARY, NIL, Dictionary, clear, varray());
 	ADDFUNC1R(DICTIONARY, BOOL, Dictionary, has, NIL, "key", varray());
 	ADDFUNC1R(DICTIONARY, BOOL, Dictionary, has_all, ARRAY, "keys", varray());
-	ADDFUNC1R(DICTIONARY, BOOL, Dictionary, erase, NIL, "key", varray());
+	ADDFUNC1RNC(DICTIONARY, BOOL, Dictionary, erase, NIL, "key", varray());
 	ADDFUNC0R(DICTIONARY, INT, Dictionary, hash, varray());
 	ADDFUNC0R(DICTIONARY, ARRAY, Dictionary, keys, varray());
 	ADDFUNC0R(DICTIONARY, ARRAY, Dictionary, values, varray());