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_boid.c
parent79f67acccb36fd67f534b75f1d0f7e0799080c24 (diff)
Cleanup: redundant use of string formatting functions
Diffstat (limited to 'source/blender/makesrna/intern/rna_boid.c')
-rw-r--r--source/blender/makesrna/intern/rna_boid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_boid.c b/source/blender/makesrna/intern/rna_boid.c
index 9906fa49dcb..27e4ee639c5 100644
--- a/source/blender/makesrna/intern/rna_boid.c
+++ b/source/blender/makesrna/intern/rna_boid.c
@@ -207,8 +207,9 @@ static char *rna_BoidSettings_path(PointerRNA *ptr)
if (particle_id_check(ptr)) {
ParticleSettings *part = (ParticleSettings *)ptr->id.data;
- if (part->boids == boids)
- return BLI_sprintfN("boids");
+ if (part->boids == boids) {
+ return BLI_strdup("boids");
+ }
}
return NULL;
}