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:
authorJoshua Leung <aligorith@gmail.com>2009-10-19 08:56:19 +0400
committerJoshua Leung <aligorith@gmail.com>2009-10-19 08:56:19 +0400
commit1a7ec53dc446f417592d077f3b736ad35f72ae2e (patch)
tree96837a1edfa75e2eaae876448a82832f64520a93 /source/blender/editors/space_view3d/view3d_header.c
parented032e13f230a156bbe95412036c37f5f4a8d4b5 (diff)
Assorted 3D-View Tweaks:
* Paste Flipped Pose in PoseMode should now work. The parameters weren't getting set before * Added a notifier that gets sent when changing layers with scene lock on. For some reason, this doesn't seem to be sending the correct updates though. * Made the tools region no longer overlap the 3D-View. The default .b.blend file still needs to be updated so that this gets reflected.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_header.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_header.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c
index c0a0241c74c..e6fe8fabc13 100644
--- a/source/blender/editors/space_view3d/view3d_header.c
+++ b/source/blender/editors/space_view3d/view3d_header.c
@@ -178,12 +178,12 @@ static void handle_view3d_lock(bContext *C)
if (v3d != NULL && sa != NULL) {
if(v3d->localvd==NULL && v3d->scenelock && sa->spacetype==SPACE_VIEW3D) {
-
/* copy to scene */
scene->lay= v3d->lay;
scene->camera= v3d->camera;
- //copy_view3d_lock(REDRAW);
+ /* notifiers for scene update */
+ WM_event_add_notifier(C, NC_SCENE, scene);
}
}
}
@@ -2204,6 +2204,9 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
uiDefIconBut(block, BUT, B_VIEWRENDER, ICON_SCENE, xco,yco,XIC,YIC, NULL, 0, 1.0, 0, 0, "Render this window (Ctrl Click for anim)");
if (ob && (ob->mode & OB_MODE_POSE)) {
+ PointerRNA *but_ptr;
+ uiBut *but;
+
xco+= XIC*2;
uiBlockBeginAlign(block);
@@ -2213,8 +2216,9 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
uiDefIconButO(block, BUT, "POSE_OT_paste", WM_OP_INVOKE_REGION_WIN, ICON_PASTEDOWN, xco,yco,XIC,YIC, NULL);
xco+= XIC;
- // FIXME: this needs an extra arg...
- uiDefIconButO(block, BUT, "POSE_OT_paste", WM_OP_INVOKE_REGION_WIN, ICON_PASTEFLIPDOWN, xco,yco,XIC,YIC, NULL);
+ but=uiDefIconButO(block, BUT, "POSE_OT_paste", WM_OP_INVOKE_REGION_WIN, ICON_PASTEFLIPDOWN, xco,yco,XIC,YIC, NULL);
+ but_ptr= uiButGetOperatorPtrRNA(but);
+ RNA_boolean_set(but_ptr, "flipped", 1);
uiBlockEndAlign(block);
header_xco_step(ar, &xco, &yco, &maxco, XIC);