diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-27 10:08:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 10:08:26 +0200 |
commit | 8dfa12cae729258155fbad51ed41f1bb3ad1006a (patch) | |
tree | 15a556638bbff71f35e8b42879ccd6570e1f64fb /editor/plugins/skeleton_3d_editor_plugin.cpp | |
parent | f8cfff2aa6adcb2665f237d487611f8b2a63099f (diff) | |
parent | de4c97758af117af97fad58e4a80ffeba0154ba8 (diff) |
Merge pull request #59979 from bruvzg/cpp_check2
Diffstat (limited to 'editor/plugins/skeleton_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/skeleton_3d_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/plugins/skeleton_3d_editor_plugin.cpp b/editor/plugins/skeleton_3d_editor_plugin.cpp index 065683d632..0a67cfb54c 100644 --- a/editor/plugins/skeleton_3d_editor_plugin.cpp +++ b/editor/plugins/skeleton_3d_editor_plugin.cpp @@ -1209,8 +1209,7 @@ void Skeleton3DGizmoPlugin::set_subgizmo_transform(const EditorNode3DGizmo *p_gi t.basis = to_local * p_transform.get_basis(); // Origin. - Vector3 orig = Vector3(); - orig = skeleton->get_bone_pose(p_id).origin; + Vector3 orig = skeleton->get_bone_pose(p_id).origin; Vector3 sub = p_transform.origin - skeleton->get_bone_global_pose(p_id).origin; t.origin = orig + to_local.xform(sub); |