diff options
Diffstat (limited to 'source/blender/makesrna/intern/rna_boid.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_boid.c | 5 |
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; } |