moveControls and other controls altered
This commit is contained in:
@@ -83,7 +83,7 @@ function MoveControls2D({
|
||||
|
||||
if (keyCombination === "G") {
|
||||
if (selectedPoints.length > 0) {
|
||||
moveAssets();
|
||||
movePoints();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ function MoveControls2D({
|
||||
return new THREE.Vector3().subVectors(pointPosition, hitPoint);
|
||||
}, []);
|
||||
|
||||
const moveAssets = useCallback(() => {
|
||||
const movePoints = useCallback(() => {
|
||||
if (selectedPoints.length === 0) return;
|
||||
|
||||
const states: Record<string, { position: THREE.Vector3; rotation?: THREE.Euler; }> = {};
|
||||
|
||||
Reference in New Issue
Block a user