Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2016-09-28 01:44:31 +0300
committerJulian Eisel <eiseljulian@gmail.com>2016-09-28 01:53:59 +0300
commitdbb8222baa408eb1c1ebb47fc7b7c52bf2fbdd35 (patch)
treeceb545721b93c9f0f390243371af3c4c402652bd /source/blender/editors/space_view3d/view3d_view.c
parent13a4147c17f82681c29fcc25cce86aff1702f2d1 (diff)
Fix missing properties editor update when changing 3D View camera
Actually two errors here: * Properties editor wasn't refreshing on (NC_SCENE | ND_RENDER_OPTIONS) notifiers * Was using notifier info bits wrongly, needs to send two separate notifiers Decided to remove ND_RENDER_OPTIONS rather than adding properties editor scene context refresh for it, this is more than a render option change.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_view.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index bc7a9989c72..af86fb72070 100644
--- a/source/blender/editors/space_view3d/view3d_view.c
+++ b/source/blender/editors/space_view3d/view3d_view.c
@@ -627,7 +627,10 @@ static int view3d_setobjectascamera_exec(bContext *C, wmOperator *op)
.dist = &rv3d->dist, .lens = &v3d->lens});
}
- WM_event_add_notifier(C, NC_SCENE | ND_RENDER_OPTIONS | NC_OBJECT | ND_DRAW, CTX_data_scene(C));
+ if (v3d->scenelock) {
+ WM_event_add_notifier(C, NC_SCENE, scene);
+ }
+ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, scene);
}
return OPERATOR_FINISHED;