decal drop bug fix

This commit is contained in:
2025-09-01 12:37:09 +05:30
parent 7d7100893c
commit 09c909c377
4 changed files with 7 additions and 6 deletions

View File

@@ -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 });