Bugfix #27044
authorTon Roosendaal <ton@blender.org>
Wed, 20 Apr 2011 12:30:13 +0000 (12:30 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 20 Apr 2011 12:30:13 +0000 (12:30 +0000)
Enter or exit localview changes bitflags (layers) in Objects, and should get an
undo push for that reason.

source/blender/editors/space_view3d/view3d_view.c

index f98b2dc934f04fcf05b82da0372d4b2e4fb75458..c97833aea4b5b80d8b0d8cfa60bf00e890c0a24b 100644 (file)
@@ -1670,6 +1670,7 @@ void VIEW3D_OT_localview(wmOperatorType *ot)
        
        /* api callbacks */
        ot->exec= localview_exec;
+       ot->flag= OPTYPE_UNDO; /* localview changes object layer bitflags */
        
        ot->poll= ED_operator_view3d_active;
 }