diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-05-19 10:07:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-05-19 10:07:05 +0400 |
commit | a6b5cebc6c11ab07c6518b7f5976608a3b09c4af (patch) | |
tree | 4735a80b8107166de4295c7fddffb6e5933272a2 /source | |
parent | ff9bd252e8be573db84ae3977886dfc8cd68a6c4 (diff) |
remove function to check for correct rv3d->perps, could crash in some cases and blender checks that its correct in the view3d code.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 8d513676c36..70e9e347bc4 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -338,30 +338,6 @@ static void rna_RegionView3D_quadview_update(Main *main, Scene *scene, PointerRN ED_view3d_quadview_update(sa, ar); } -static void rna_RegionView3D_prespective_set(PointerRNA *ptr, const int value) -{ - RegionView3D *rv3d= (RegionView3D *)(ptr->data); - - if(value==RV3D_CAMOB) { - bScreen *sc= (bScreen*)ptr->id.data; - Scene *scene= (Scene *)sc->scene; - ScrArea *sa; - ARegion *ar; - View3D *v3d; - - rna_area_region_from_regiondata(ptr, &sa, &ar); - v3d = sa->spacedata.first; // XXX, could be not the first! - if(v3d->camera==NULL) { - if(scene->camera==NULL) - return; /* cant set camera */ - - v3d->camera= scene->camera; - } - } - - rv3d->persp= value; -} - /* Space Image Editor */ static PointerRNA rna_SpaceImageEditor_uvedit_get(PointerRNA *ptr) @@ -1202,7 +1178,6 @@ static void rna_def_space_view3d(BlenderRNA *brna) prop= RNA_def_property(srna, "perspective", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "persp"); RNA_def_property_enum_items(prop, rv3d_persp_items); - RNA_def_property_enum_funcs(prop, NULL, "rna_RegionView3D_prespective_set", NULL); RNA_def_property_ui_text(prop, "Perspective", "View Perspective"); RNA_def_property_update(prop, NC_SPACE|ND_SPACE_VIEW3D, NULL); } |