diff options
author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2020-10-05 09:14:36 -0700 |
---|---|---|
committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2020-10-05 09:25:37 -0700 |
commit | 7b76f8783f438c381466108f7fd3150afcb9070a (patch) | |
tree | 3e262643fd16594b2ecbaf93bfd8c8daf34bdcab /core/project_settings.cpp | |
parent | 7d312448ad92f6af4831fb198cabe27cd350fda7 (diff) |
Better non alphanumeric bone names.
1. _gen_unique_bone_name(Ref<GLTFState> state, const GLTFSkeletonIndex skel_i, const String &p_name) won't return an empty string.
2. String GLTFDocument::_sanitize_bone_name(const String &name) will keep Japanese characters. Like: "全ての親".
3. The sanitize function allows the bone name to be not just alphanumeric. The only required conditions are the ones in add_bone.
> ERR_FAIL_COND(p_name == "" || p_name.find(":") != -1 || p_name.find("/") != -1);
Diffstat (limited to 'core/project_settings.cpp')
0 files changed, 0 insertions, 0 deletions