Commit: 8442fdb8fa8f938eb1022b435aa8260cf95ba3f0
Author: Martin Felke
Date:   Tue Apr 9 18:24:17 2019 +0200
Branches: sculpt-mode-features
https://developer.blender.org/rB8442fdb8fa8f938eb1022b435aa8260cf95ba3f0

fix attempt for bug when moving a shared csg operand (still odd transforms)

===================================================================

M       source/blender/modifiers/intern/MOD_remesh.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_remesh.c 
b/source/blender/modifiers/intern/MOD_remesh.c
index 09b06e40aca..a263db9322c 100644
--- a/source/blender/modifiers/intern/MOD_remesh.c
+++ b/source/blender/modifiers/intern/MOD_remesh.c
@@ -402,7 +402,11 @@ static void copyData(const ModifierData *md_src, 
ModifierData *md_dst, const int
        RemeshModifierData *rmd_dst = (RemeshModifierData*)md_dst;
 
        modifier_copyData_generic(md_src, md_dst, flag);
-       BLI_duplicatelist(&rmd_dst->csg_operands, &rmd_src->csg_operands);
+
+       //only for cow copy ?
+       if (flag & LIB_ID_CREATE_NO_MAIN) {
+               BLI_duplicatelist(&rmd_dst->csg_operands, 
&rmd_src->csg_operands);
+       }
 }
 
 ModifierTypeInfo modifierType_Remesh = {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to