bugfix [#20091] Crash when starting render on meta-edit mode
authorCampbell Barton <ideasman42@gmail.com>
Sat, 28 Nov 2009 22:45:47 +0000 (22:45 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 28 Nov 2009 22:45:47 +0000 (22:45 +0000)
note: EM_DO_UNDO wasnt used because EM_FREEDATA wasnt set

source/blender/editors/screen/screen_ops.c

index 456671b3d75e0fc7390d98ec720a3ff63f3f51dc..4a002088c3dedf5b569e6ff92060483a2cf3caae 100644 (file)
@@ -3014,7 +3014,7 @@ static int screen_render_invoke(bContext *C, wmOperator *op, wmEvent *event)
        multires_force_update(CTX_data_active_object(C));
        
        /* get editmode results */
-       ED_object_exit_editmode(C, EM_DO_UNDO); /* 0 = does not exit editmode */
+       ED_object_exit_editmode(C, EM_FREEDATA|EM_DO_UNDO);     /* 0 = does not exit editmode */
        
        // store spare
        // get view3d layer, local layer, make this nice api call to render