[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24635] trunk/blender/source/blender/ makesrna/intern/rna_rna.c: remove ID property lookups from rna..
Campbell Barton
ideasman42 at gmail.com
Wed Nov 18 11:59:18 CET 2009
Revision: 24635
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24635
Author: campbellbarton
Date: 2009-11-18 11:59:17 +0100 (Wed, 18 Nov 2009)
Log Message:
-----------
remove ID property lookups from rna..
ob["foo"] = 1
print(ob.foo) # now raises an error
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_rna.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_rna.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_rna.c 2009-11-18 10:57:30 UTC (rev 24634)
+++ trunk/blender/source/blender/makesrna/intern/rna_rna.c 2009-11-18 10:59:17 UTC (rev 24635)
@@ -283,7 +283,6 @@
{
StructRNA *srna;
PropertyRNA *prop;
- IDProperty *group, *idp;
PointerRNA propptr;
memset(&propptr, 0, sizeof(propptr));
@@ -309,7 +308,13 @@
}
} while((srna=srna->base));
+ /* this was used pre 2.5beta0, now ID property access uses python's
+ * getitem style access
+ * - ob["foo"] rather then ob.foo */
+#if 0
if(ptr->data) {
+ IDProperty *group, *idp;
+
group= RNA_struct_idproperties(ptr, 0);
if(group) {
@@ -322,7 +327,7 @@
}
}
}
-
+#endif
return propptr;
}
More information about the Bf-blender-cvs
mailing list