mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-30 15:42:42 +08:00
Fix transform gizmo not updating to camera rotation
This commit is contained in:
parent
3938f70a57
commit
818dd61c0d
@ -684,6 +684,13 @@
|
||||
rot_origin.scale.multiply(rot_origin.base_scale);
|
||||
}
|
||||
|
||||
// Update Eye Position
|
||||
if ( scope.camera instanceof THREE.PerspectiveCamera ) {
|
||||
eye.copy( camPosition ).sub( worldPosition ).normalize();
|
||||
} else if ( scope.camera instanceof THREE.OrthographicCamera ) {
|
||||
eye.copy( camPosition ).normalize();
|
||||
}
|
||||
|
||||
if (scope.elements.length == 0) return;
|
||||
|
||||
if (object) {
|
||||
|
Loading…
Reference in New Issue
Block a user