diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_force.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index e620a8f6526..337b44a534b 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -532,16 +532,16 @@ static char *rna_FieldSettings_path(PointerRNA *ptr) ParticleSettings *part = (ParticleSettings *)ptr->id.data; if (part->pd == pd) - return BLI_sprintfN("force_field_1"); + return BLI_strdup("force_field_1"); else if (part->pd2 == pd) - return BLI_sprintfN("force_field_2"); + return BLI_strdup("force_field_2"); } else { /* object force field */ Object *ob = (Object *)ptr->id.data; if (ob->pd == pd) - return BLI_sprintfN("field"); + return BLI_strdup("field"); } return NULL; } @@ -582,8 +582,9 @@ static char *rna_EffectorWeight_path(PointerRNA *ptr) /* particle effector weights */ ParticleSettings *part = (ParticleSettings *)ptr->id.data; - if (part->effector_weights == ew) - return BLI_sprintfN("effector_weights"); + if (part->effector_weights == ew) { + return BLI_strdup("effector_weights"); + } } else { Object *ob = (Object *)ptr->id.data; |