-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor UI fix for string parsing array's variant sub-hint (hint_strin…
…g syntax). F.e restrict Array's editor UI to allow only NodePaths of RigidBody type. I think hint_string syntax was supposed to be: (VARIANT_ID_INT):[(HINT_ID_INT)/(HINT_STRING)] the section after colon is optional but it's hard to figure out without any docs, and broken string parser. Use Example: ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "hints_array", PROPERTY_HINT_NONE, itos(Variant::NODE_PATH)+":"+itos(PROPERTY_HINT_NODE_PATH_VALID_TYPES)+"/RigidBody"), "set_hints", "get_hints");
- Loading branch information
1 parent
119bf23
commit f224740
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters