2.5 3DView Properties Panel:
[blender-staging.git] / source / blender / makesrna / intern / rna_space.c
index 2afa1e6102bfda359690678b5be8b58de11b3c7d..f04f3b7be68f69ce846b9ca8f87192c82bdc8152 100644 (file)
@@ -646,7 +646,18 @@ static void rna_def_space_3dview(BlenderRNA *brna)
        RNA_def_property_enum_items(prop, transform_orientation_items);
        RNA_def_property_ui_text(prop, "Transform Orientation", "The alignment of manipulator handles.");
        RNA_def_property_update(prop, NC_OBJECT|ND_TRANSFORM, NULL);
+
+       prop= RNA_def_property(srna, "lock_rotation", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, "RegionView3D", "viewlock", RV3D_LOCKED);
+       RNA_def_property_ui_text(prop, "Lock", "Lock View Rotation");
+       
+       prop= RNA_def_property(srna, "box_preview", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, "RegionView3D", "viewlock", RV3D_BOXVIEW);
+       RNA_def_property_ui_text(prop, "Box", "");
        
+       prop= RNA_def_property(srna, "box_clip", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, "RegionView3D", "viewlock", RV3D_BOXCLIP);
+       RNA_def_property_ui_text(prop, "Clip", "");
 }
 
 static void rna_def_space_buttons(BlenderRNA *brna)