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:
authorCampbell Barton <ideasman42@gmail.com>2011-05-14 21:50:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-14 21:50:33 +0400
commite7db08056524016cc86705afd18dfd8279730069 (patch)
tree46731e8d1d3630c8d33df64745966082ecc2325f /source/blender/makesrna/intern/rna_space.c
parent93bc463f6d070574edf8234dc516506731a707a3 (diff)
option to have the view controls apply to the camera view (and camera object).
- follow rotate/pan/zoom/dolly operators. - auto-depth preference works. - smooth view navigation supported. - view selected, all & numpad operator work too. TODO - deal with camera transform locked axis - find a way to move/zoom the frame while the camera is locked (if it turns out to be a problem).
Diffstat (limited to 'source/blender/makesrna/intern/rna_space.c')
-rw-r--r--source/blender/makesrna/intern/rna_space.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index c92c0d971e8..eeb370854fc 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1298,6 +1298,11 @@ static void rna_def_space_view3d(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Textured Solid", "Display face-assigned textures in solid view");
RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
+ prop= RNA_def_property(srna, "lock_camera", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_sdna(prop, NULL, "flag2", V3D_LOCK_CAMERA);
+ RNA_def_property_ui_text(prop, "Lock Camera to View", "Enable view navigation within the camera view");
+ RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
+
prop= RNA_def_property(srna, "show_only_render", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag2", V3D_RENDER_OVERRIDE);
RNA_def_property_ui_text(prop, "Only Render", "Display only objects which will be rendered");