diff options
author | Matt Ebb <matt@mke3.net> | 2009-11-04 01:07:15 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-11-04 01:07:15 +0300 |
commit | c8ee492e7afe877c6ba85cd9b814cce8419b62cd (patch) | |
tree | 4841b9a7e42cced869f06d9504722a0bca301c08 /source/blender/makesrna/intern/rna_cloth.c | |
parent | 2db1851c261eae4b368f476b372aa25ded2951a6 (diff) |
Changed hand-generated RNA paths to quote strings used as collection indexes.
Previous method worked fine for Blender animation system, but this is more convenient for Python.
Diffstat (limited to 'source/blender/makesrna/intern/rna_cloth.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_cloth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_cloth.c b/source/blender/makesrna/intern/rna_cloth.c index d64e2c7119b..d78544634bc 100644 --- a/source/blender/makesrna/intern/rna_cloth.c +++ b/source/blender/makesrna/intern/rna_cloth.c @@ -152,7 +152,7 @@ static char *rna_ClothSettings_path(PointerRNA *ptr) Object *ob= (Object*)ptr->id.data; ModifierData *md= modifiers_findByType(ob, eModifierType_Cloth); - return md ? BLI_sprintfN("modifiers[%s].settings", md->name) : NULL; + return md ? BLI_sprintfN("modifiers[\"%s\"].settings", md->name) : NULL; } static char *rna_ClothCollisionSettings_path(PointerRNA *ptr) @@ -160,7 +160,7 @@ static char *rna_ClothCollisionSettings_path(PointerRNA *ptr) Object *ob= (Object*)ptr->id.data; ModifierData *md= modifiers_findByType(ob, eModifierType_Cloth); - return md ? BLI_sprintfN("modifiers[%s].collision_settings", md->name) : NULL; + return md ? BLI_sprintfN("modifiers[\"%s\"].collision_settings", md->name) : NULL; } #else |