Context operators for adjusting context values directly to avoid adding operators...
[blender.git] / source / blender / makesrna / intern / rna_space.c
index 99ee3e653f0475cd94dc1bfc4bfb6fade6fdba23..7d77660db6d323d2c1e5cffdae35732de256eae8 100644 (file)
@@ -766,6 +766,11 @@ static void rna_def_space_3dview(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "Pivot Point", "Pivot center for rotation/scaling.");
        RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
        
+       prop= RNA_def_property(srna, "pivot_point_align", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_ALIGN);
+       RNA_def_property_ui_text(prop, "Align", "Manipulate object centers only.");
+       RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
+
        prop= RNA_def_property(srna, "manipulator", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "twflag", V3D_USE_MANIPULATOR);
        RNA_def_property_ui_text(prop, "Manipulator", "Use a 3D manipulator widget for controlling transforms.");