[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28849] trunk/blender/source/blender/ makesrna/intern/rna_space.c: remove function to check for correct rv3d-> perps, could crash in some cases and blender checks that its correct in the view3d code .

Campbell Barton ideasman42 at gmail.com
Wed May 19 08:07:06 CEST 2010


Revision: 28849
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28849
Author:   campbellbarton
Date:     2010-05-19 08:07:05 +0200 (Wed, 19 May 2010)

Log Message:
-----------
remove function to check for correct rv3d->perps, could crash in some cases and blender checks that its correct in the view3d code.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_space.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_space.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_space.c	2010-05-19 05:41:30 UTC (rev 28848)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c	2010-05-19 06:07:05 UTC (rev 28849)
@@ -338,30 +338,6 @@
 		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 @@
 	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);
 }





More information about the Bf-blender-cvs mailing list