You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
fix set_position()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user