forked from bartvdbraak/blender
Game engine: show popup with error rather than printing in console when
trying to start game engine disabled in build.
This commit is contained in:
parent
53a3b64601
commit
2430005cef
@ -1801,11 +1801,13 @@ static int game_engine_exec(bContext *C, wmOperator *unused)
|
|||||||
set_scene_bg(startscene);
|
set_scene_bg(startscene);
|
||||||
//XXX scene_update_for_newframe(G.scene, G.scene->lay);
|
//XXX scene_update_for_newframe(G.scene, G.scene->lay);
|
||||||
|
|
||||||
#else
|
|
||||||
printf("GameEngine Disabled\n");
|
|
||||||
#endif
|
|
||||||
ED_area_tag_redraw(CTX_wm_area(C));
|
ED_area_tag_redraw(CTX_wm_area(C));
|
||||||
|
|
||||||
return OPERATOR_FINISHED;
|
return OPERATOR_FINISHED;
|
||||||
|
#else
|
||||||
|
BKE_report(op->reports, RPT_ERROR, "Game engine is disabled in this build.");
|
||||||
|
return OPERATOR_CANCELLED;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void VIEW3D_OT_game_start(wmOperatorType *ot)
|
void VIEW3D_OT_game_start(wmOperatorType *ot)
|
||||||
|
Loading…
Reference in New Issue
Block a user