option to have the view controls apply to the camera view (and camera object).
[blender.git] / source / blender / makesrna / intern / rna_space.c
index c92c0d971e81fa84040a5ba1289ae26d95908f31..eeb370854fcea935bb54d26174b611514bd36cb8 100644 (file)
@@ -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");