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:
authorDalai Felinto <dfelinto@gmail.com>2015-04-07 21:42:44 +0300
committerDalai Felinto <dfelinto@gmail.com>2015-04-07 21:43:06 +0300
commit662c2cd9105c43f2c21c511a68d45cef719ef9c9 (patch)
tree580b2c5392580be49bc81d9bbe136d22011e998d /source/blender/windowmanager/intern/wm_stereo.c
parent858f54f16ed3b8109fde1655fc8f224a0058b69c (diff)
Multiview: update Set Stereo 3D menu when the selected stereo mode changes
Diffstat (limited to 'source/blender/windowmanager/intern/wm_stereo.c')
-rw-r--r--source/blender/windowmanager/intern/wm_stereo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_stereo.c b/source/blender/windowmanager/intern/wm_stereo.c
index 5d7b11272c6..44d0e81e93c 100644
--- a/source/blender/windowmanager/intern/wm_stereo.c
+++ b/source/blender/windowmanager/intern/wm_stereo.c
@@ -519,6 +519,14 @@ void wm_stereo3d_set_draw(bContext *C, wmOperator *op)
}
}
+bool wm_stereo3d_set_check(bContext *UNUSED(C), wmOperator *UNUSED(op))
+{
+ /* the check function guarantees that the menu is updated to show the
+ * sub-options when an enum change (e.g., it shows the anaglyph options
+ * when anaglyph is on, and the interlace options when this is on */
+ return true;
+}
+
void wm_stereo3d_set_cancel(bContext *C, wmOperator *op)
{
Stereo3dData *s3dd = op->customdata;