there wasn't a good way to know if a RegionView3D was perspective or not (without...
[blender-staging.git] / source / blender / makesrna / intern / rna_space.c
index 2dbbb29f17496811087ae89d056e230dbc40759a..6b6071c4912df4e604b5e18be49199d7d4bf29ee 100644 (file)
@@ -1435,6 +1435,11 @@ static void rna_def_space_view3d(BlenderRNA *brna)
        RNA_def_property_enum_items(prop, rv3d_persp_items);
        RNA_def_property_ui_text(prop, "Perspective", "View Perspective");
        RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL);
+
+       prop= RNA_def_property(srna, "is_perspective", PROP_BOOLEAN, PROP_NONE);
+       RNA_def_property_boolean_sdna(prop, NULL, "is_persp", 1);
+       RNA_def_property_ui_text(prop, "Is Perspective", "");
+       RNA_def_property_flag(prop, PROP_EDITABLE);
        
        prop= RNA_def_property(srna, "view_location", PROP_FLOAT, PROP_TRANSLATION);
 #if 0