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>2019-03-24 08:09:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-24 08:09:46 +0300
commit16694ed408a533fcf275db8f92a5d0c7c0cbd854 (patch)
tree98ff1da567ee52d58cadf455e443d99536437c1f /source/blender/makesrna/intern/rna_object_force.c
parent79f67acccb36fd67f534b75f1d0f7e0799080c24 (diff)
Cleanup: redundant use of string formatting functions
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_force.c')
-rw-r--r--source/blender/makesrna/intern/rna_object_force.c11
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;