Remove scene exit placement logic from App.tsx
This commit is contained in:
@@ -6546,29 +6546,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
);
|
);
|
||||||
completeCreation("Placed Interactable.");
|
completeCreation("Placed Interactable.");
|
||||||
return true;
|
return true;
|
||||||
case "sceneExit": {
|
|
||||||
const destination = resolveDefaultSceneExitDestination();
|
|
||||||
|
|
||||||
if (destination === null) {
|
|
||||||
setStatusMessage(
|
|
||||||
"Author a Scene Entry before placing a Scene Exit."
|
|
||||||
);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
store.executeCommand(
|
|
||||||
createUpsertEntityCommand({
|
|
||||||
entity: createSceneExitEntity({
|
|
||||||
position,
|
|
||||||
targetSceneId: destination.targetSceneId,
|
|
||||||
targetEntryEntityId: destination.targetEntryEntityId
|
|
||||||
}),
|
|
||||||
label: "Place scene exit"
|
|
||||||
})
|
|
||||||
);
|
|
||||||
completeCreation("Placed Scene Exit.");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
setStatusMessage(getErrorMessage(error));
|
setStatusMessage(getErrorMessage(error));
|
||||||
|
|||||||
Reference in New Issue
Block a user