I'm trying to show save option directly while closing the blender only if user have made any changes in Blender.
I'm trying to execute this line
ot->exec = wm_save_mainfile; // from window_operator.c file
in to this operator function
static int wm_exit_blender_op(bContext *C, wmOperator *op)
- - - - - ;
But I can't. How its possible? or Shall I create a NEW operator like WM_OT_quit_blender(wmOperatorType *ot) what are the steps I have to follow, Is there any link for this?
Compiling, libraries, modules, coding guidelines and porting
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests