Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-18 13:59:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-18 13:59:17 +0300
commit28d1a352603eb0ec1ffa3ba578e21ab6542e5a87 (patch)
treea2ca7d711caa56a3a2168ebefff3af4a8eb757d8 /source/blender/makesrna/intern/rna_rna.c
parentb1a5ba6804865ef0ae0790e87d9c68b6b6557e4a (diff)
remove ID property lookups from rna..
ob["foo"] = 1 print(ob.foo) # now raises an error
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r--source/blender/makesrna/intern/rna_rna.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index f8109b9794d..4218724d7df 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -283,7 +283,6 @@ PointerRNA rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key
{
StructRNA *srna;
PropertyRNA *prop;
- IDProperty *group, *idp;
PointerRNA propptr;
memset(&propptr, 0, sizeof(propptr));
@@ -309,7 +308,13 @@ PointerRNA rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key
}
} 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 @@ PointerRNA rna_builtin_properties_lookup_string(PointerRNA *ptr, const char *key
}
}
}
-
+#endif
return propptr;
}