Fix #144086: Crash Running "New Scene" in an Empty file

This commit is contained in:
Campbell Barton
2025-08-07 14:51:33 +10:00
parent 08cf60c66e
commit 62a38eacb3

View File

@@ -280,6 +280,7 @@ static void SCENE_OT_new(wmOperatorType *ot)
/* API callbacks. */
ot->exec = scene_new_exec;
ot->invoke = WM_menu_invoke;
ot->poll = WM_operator_winactive;
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;