Add check for scene exit destination before creation
This commit is contained in:
@@ -3417,6 +3417,11 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
kind: EntityKind,
|
kind: EntityKind,
|
||||||
options: { audioAssetId?: string | null } = {}
|
options: { audioAssetId?: string | null } = {}
|
||||||
) => {
|
) => {
|
||||||
|
if (kind === "sceneExit" && resolveDefaultSceneExitDestination() === null) {
|
||||||
|
setStatusMessage("Author a Scene Entry before placing a Scene Exit.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
beginCreation(
|
beginCreation(
|
||||||
{
|
{
|
||||||
kind: "create",
|
kind: "create",
|
||||||
|
|||||||
Reference in New Issue
Block a user