Fix local 3D translation editing

This commit is contained in:
A Thousand Ships 2023-09-13 11:24:05 +02:00
parent 5f1e56ff26
commit dae27d1311

View File

@ -1460,14 +1460,10 @@ Transform3D Node3DEditorViewport::_compute_transform(TransformMode p_mode, const
}
if (p_local) {
p_motion = p_original.basis.xform(p_motion);
return p_original_local.translated_local(p_motion);
}
// Apply translation
Transform3D t = p_original;
t.origin += p_motion;
return t;
return p_original.translated(p_motion);
}
case TRANSFORM_ROTATE: {
Transform3D r;