* Fix for previous 'set object as camera' operator - now properly sets the scene...
authorMatt Ebb <matt@mke3.net>
Tue, 6 Oct 2009 23:13:07 +0000 (23:13 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 6 Oct 2009 23:13:07 +0000 (23:13 +0000)
source/blender/editors/space_view3d/view3d_view.c

index fc332cf629347024f2527d7e7c5e7e67e8a39b7d..505f3abf401ed348d1ba7b77599435a09ecabcaf 100644 (file)
@@ -443,10 +443,12 @@ static int view3d_setobjectascamera_exec(bContext *C, wmOperator *op)
        if(BASACT) {
                rv3d->persp= V3D_CAMOB;
                v3d->camera= OBACT;
+               if(v3d->scenelock)
+                       scene->camera= OBACT;
                smooth_view(C, NULL, v3d->camera, rv3d->ofs, rv3d->viewquat, &rv3d->dist, &v3d->lens);
        }
        
-       WM_event_add_notifier(C, NC_OBJECT|ND_TRANSFORM, CTX_data_scene(C));
+       WM_event_add_notifier(C, NC_SCENE|ND_RENDER_OPTIONS|NC_OBJECT|ND_DRAW, CTX_data_scene(C));
        
        return OPERATOR_FINISHED;
 }