Skip to content

Commit

Permalink
Fix rest fixer for the model has skin which non inverse global rest
Browse files Browse the repository at this point in the history
  • Loading branch information
TokageItLab committed Sep 3, 2022
1 parent 9dfa14d commit 563dcbe
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 145 deletions.
2 changes: 1 addition & 1 deletion editor/import/post_import_plugin_skeleton_renamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void PostImportPluginSkeletonRenamer::internal_process(InternalImportCategory p_
// Make unique skeleton.
if (bool(p_options["retarget/bone_renamer/unique_node/make_unique"])) {
String unique_name = String(p_options["retarget/bone_renamer/unique_node/skeleton_name"]);
ERR_FAIL_COND_MSG(unique_name == String(), "Skeleton unique name cannot be empty.");
ERR_FAIL_COND_MSG(unique_name.is_empty(), "Skeleton unique name cannot be empty.");

TypedArray<Node> nodes = p_base_scene->find_children("*", "AnimationPlayer");
while (nodes.size()) {
Expand Down
Loading

0 comments on commit 563dcbe

Please sign in to comment.