Fix error copying smoke modifier uv layer
authorCampbell Barton <ideasman42@gmail.com>
Wed, 4 Oct 2017 15:44:02 +0000 (02:44 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 4 Oct 2017 15:44:02 +0000 (02:44 +1100)
source/blender/blenkernel/intern/smoke.c

index adecea7080ca676c16d72190bfa441239a000b8a..fcf4724bd1c3aad08f8a15219e09c7eb058056ec 100644 (file)
@@ -677,7 +677,7 @@ void smokeModifier_copy(struct SmokeModifierData *smd, struct SmokeModifierData
 
                tsmd->flow->texture_size = smd->flow->texture_size;
                tsmd->flow->texture_offset = smd->flow->texture_offset;
-               BLI_strncpy(tsmd->flow->uvlayer_name, tsmd->flow->uvlayer_name, sizeof(tsmd->flow->uvlayer_name));
+               BLI_strncpy(tsmd->flow->uvlayer_name, smd->flow->uvlayer_name, sizeof(tsmd->flow->uvlayer_name));
                tsmd->flow->vgroup_density = smd->flow->vgroup_density;
 
                tsmd->flow->type = smd->flow->type;