decal drop bug fix
This commit is contained in:
@@ -116,7 +116,7 @@ export function useDecalEventHandlers({
|
||||
}
|
||||
});
|
||||
|
||||
const handlePointerUp = (e: PointerEvent) => {
|
||||
const handlePointerUp = () => {
|
||||
if (controls) {
|
||||
(controls as CameraControls).enabled = true;
|
||||
}
|
||||
@@ -235,6 +235,7 @@ export function useDecalEventHandlers({
|
||||
};
|
||||
|
||||
const handleDecalUp = (e: ThreeEvent<MouseEvent>) => {
|
||||
e.stopPropagation();
|
||||
if (visible && !toggleView && activeModule === 'builder') {
|
||||
if (!decalDragState.isDragging && !selectedDecal && e.object.userData.decalUuid && toolMode === 'cursor') {
|
||||
setSelectedDecal({ decalMesh: e.object, decalData: decal });
|
||||
|
||||
Reference in New Issue
Block a user