[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24220] trunk/blender/source/blender/ makesrna/intern/rna_space.c: Fix view3d rna to work with new number of orientations ( use constant instead of value, safer for future).
Martin Poirier
theeth at yahoo.com
Sun Nov 1 21:17:31 CET 2009
Revision: 24220
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24220
Author: theeth
Date: 2009-11-01 21:17:30 +0100 (Sun, 01 Nov 2009)
Log Message:
-----------
Fix view3d rna to work with new number of orientations (use constant instead of value, safer for future).
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 2009-11-01 20:09:03 UTC (rev 24219)
+++ trunk/blender/source/blender/makesrna/intern/rna_space.c 2009-11-01 20:17:30 UTC (rev 24220)
@@ -153,10 +153,10 @@
Scene *scene = ((bScreen*)ptr->id.data)->scene;
View3D *v3d= (View3D*)ptr->data;
- if (v3d->twmode < 4)
+ if (v3d->twmode < V3D_MANIP_CUSTOM)
return rna_pointer_inherit_refine(ptr, &RNA_TransformOrientation, NULL);
else
- return rna_pointer_inherit_refine(ptr, &RNA_TransformOrientation, BLI_findlink(&scene->transform_spaces, v3d->twmode - 4));
+ return rna_pointer_inherit_refine(ptr, &RNA_TransformOrientation, BLI_findlink(&scene->transform_spaces, v3d->twmode - V3D_MANIP_CUSTOM));
}
EnumPropertyItem *rna_TransformOrientation_itemf(bContext *C, PointerRNA *ptr, int *free)
More information about the Bf-blender-cvs
mailing list