[Bf-blender-cvs] [dbb8222] master: Fix missing properties editor update when changing 3D View camera

Julian Eisel noreply at git.blender.org
Wed Sep 28 00:56:09 CEST 2016


Commit: dbb8222baa408eb1c1ebb47fc7b7c52bf2fbdd35
Author: Julian Eisel
Date:   Wed Sep 28 00:44:31 2016 +0200
Branches: master
https://developer.blender.org/rBdbb8222baa408eb1c1ebb47fc7b7c52bf2fbdd35

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.

===================================================================

M	source/blender/editors/space_view3d/view3d_view.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_view.c b/source/blender/editors/space_view3d/view3d_view.c
index bc7a998..af86fb7 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;




More information about the Bf-blender-cvs mailing list