Revision: 34482
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34482
Author: campbellbarton
Date: 2011-01-25 05:45:21 +0000 (Tue, 25 Jan 2011)
Log Message:
-----------
property lookups on structs was doing a listbase search even if the hash was
defined.
since the property hash is maintained there is no reason for this, especially
since the property could be in the StructRNA's parent class.
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 2011-01-25
01:51:28 UTC (rev 34481)
+++ trunk/blender/source/blender/makesrna/intern/rna_rna.c 2011-01-25
05:45:21 UTC (rev 34482)
@@ -321,14 +321,15 @@
return TRUE;
}
}
+ else {
+ for(prop=srna->cont.properties.first; prop;
prop=prop->next) {
+ if(!(prop->flag & PROP_BUILTIN) &&
strcmp(prop->identifier, key)==0) {
+ propptr.type= &RNA_Property;
+ propptr.data= prop;
- for(prop=srna->cont.properties.first; prop; prop=prop->next) {
- if(!(prop->flag & PROP_BUILTIN) &&
strcmp(prop->identifier, key)==0) {
- propptr.type= &RNA_Property;
- propptr.data= prop;
-
- *r_ptr= propptr;
- return TRUE;
+ *r_ptr= propptr;
+ return TRUE;
+ }
}
}
} while((srna=srna->base));
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs