summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2022-06-25 06:17:41 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2022-06-25 06:17:41 +0900
commit4880b86f077cc48dc99286f891e260278f9fb35b (patch)
tree8327fe897811f5519c67061fd8fe8b811a58a90f /scene/3d
parent60238226d3b581d4f22af615931cc052b149aab8 (diff)
fix set_position()
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/node_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp
index 78d53439e8..f836fd4a06 100644
--- a/scene/3d/node_3d.cpp
+++ b/scene/3d/node_3d.cpp
@@ -324,7 +324,7 @@ Transform3D Node3D::get_relative_transform(const Node *p_parent) const {
}
void Node3D::set_position(const Vector3 &p_position) {
- get_transform().origin = p_position;
+ data.local_transform.origin = p_position;
_propagate_transform_changed(this);
if (data.notify_local_transform) {
notification(NOTIFICATION_LOCAL_TRANSFORM_CHANGED);