fix, uvproject modifier wasn't copying the uv layer name,
[blender.git] / source / blender / modifiers / intern / MOD_uvproject.c
index a5d2e0b38c7cc5e7f8a26fa3295681a63a041c34..922ae8c1e92b6b47e0f9e95befb08325c6852fff 100644 (file)
@@ -42,6 +42,7 @@
 #include "DNA_object_types.h"
 
 #include "BLI_math.h"
+#include "BLI_string.h"
 #include "BLI_uvproject.h"
 #include "BLI_utildefines.h"
 
@@ -83,6 +84,7 @@ static void copyData(ModifierData *md, ModifierData *target)
        tumd->aspecty = umd->aspecty;
        tumd->scalex = umd->scalex;
        tumd->scaley = umd->scaley;
+       BLI_strncpy(tumd->uvlayer_name, umd->uvlayer_name, sizeof(umd->uvlayer_name));
 }
 
 static CustomDataMask requiredDataMask(Object *UNUSED(ob), ModifierData *UNUSED(md))