Fix local 3D translation editing
This commit is contained in:
parent
5f1e56ff26
commit
dae27d1311
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user