Fix RemoteTransform3D to always use global rotation if use_global_coordinates is true

This commit is contained in:
Sofox 2024-09-26 16:29:46 +01:00
parent a0d1ba4a3d
commit f7ec190a41

View file

@ -68,7 +68,7 @@ void RemoteTransform3D::_update_remote() {
Transform3D our_trans = get_global_transform();
if (update_remote_rotation) {
n->set_rotation(our_trans.basis.get_euler_normalized(EulerOrder(n->get_rotation_order())));
n->set_global_rotation(our_trans.basis.get_euler_normalized(EulerOrder(n->get_rotation_order())));
}
if (update_remote_scale) {