[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20303] branches/blender2.5/blender/source /blender/makesrna/intern/rna_access.c: Fix the fix ; )
Diego Borghetti
bdiego at gmail.com
Wed May 20 19:18:47 CEST 2009
Revision: 20303
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20303
Author: bdiego
Date: 2009-05-20 19:18:47 +0200 (Wed, 20 May 2009)
Log Message:
-----------
Fix the fix ;)
Only check for type because ptr.data can be NULL and
ptr.type not.
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/makesrna/intern/rna_access.c
Modified: branches/blender2.5/blender/source/blender/makesrna/intern/rna_access.c
===================================================================
--- branches/blender2.5/blender/source/blender/makesrna/intern/rna_access.c 2009-05-20 16:55:28 UTC (rev 20302)
+++ branches/blender2.5/blender/source/blender/makesrna/intern/rna_access.c 2009-05-20 17:18:47 UTC (rev 20303)
@@ -146,13 +146,11 @@
IDProperty *RNA_struct_idproperties(PointerRNA *ptr, int create)
{
- StructRNA *type;
+ StructRNA *type= ptr->type;
- if (ptr->data) {
- type= ptr->type;
- if(type->idproperties)
- return type->idproperties(ptr, create);
- }
+ if(type && type->idproperties)
+ return type->idproperties(ptr, create);
+
return NULL;
}
More information about the Bf-blender-cvs
mailing list