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:
authorMatt Ebb <matt@mke3.net>2009-11-04 01:07:15 +0300
committerMatt Ebb <matt@mke3.net>2009-11-04 01:07:15 +0300
commitc8ee492e7afe877c6ba85cd9b814cce8419b62cd (patch)
tree4841b9a7e42cced869f06d9504722a0bca301c08 /source/blender/makesrna/intern/rna_cloth.c
parent2db1851c261eae4b368f476b372aa25ded2951a6 (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.c4
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