Closed AThousandShips closed 3 months ago
Default arguments can currently be bound which cannot be encoded properly, at least without reworking some of the bind code
Will look into checks in the engine to ensure this is handled properly, default arrays and default Packed*Arrays
won't work currently which either requires special handling to create the values in the bindings, or blocking them in the engine itself
Edit: will look at adding to the ClassDB
tests as an initial safeguard, checking default values so they won't allow non-empty default Array
, Dictionary
, or Packed*Array
s, to make sure we won't get any unrepresentable values at least until we make it work over here if we want that
Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1491
Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1492
No bindings contain default arguments for
NodePath
currently but they would break if they were added