From f5b49af99fb63980ab05d8f909621393e4bfc2a6 Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Sat, 5 Oct 2024 06:00:39 +0900 Subject: Add RetargetModifier3D for realtime retarget to keep original rest --- scene/3d/node_3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene/3d/node_3d.cpp') diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp index 85de85a9a6..cd77a32455 100644 --- a/scene/3d/node_3d.cpp +++ b/scene/3d/node_3d.cpp @@ -841,10 +841,10 @@ void Node3D::reparent(Node *p_parent, bool p_keep_global_transform) { ERR_THREAD_GUARD; if (p_keep_global_transform) { Transform3D temp = get_global_transform(); - Node::reparent(p_parent); + Node::reparent(p_parent, p_keep_global_transform); set_global_transform(temp); } else { - Node::reparent(p_parent); + Node::reparent(p_parent, p_keep_global_transform); } } -- cgit v1.2.3