[Bf-blender-cvs] [482a42c0f6e] master: Fix T87087: attributes were removed automatically even though they are still needed

Jacques Lucke noreply at git.blender.org
Wed Mar 31 16:25:57 CEST 2021


Commit: 482a42c0f6ee2e64cf74d16630654a6a142a16c9
Author: Jacques Lucke
Date:   Wed Mar 31 16:25:23 2021 +0200
Branches: master
https://developer.blender.org/rB482a42c0f6ee2e64cf74d16630654a6a142a16c9

Fix T87087: attributes were removed automatically even though they are still needed

The geometry nodes modifier did not specify that it needs all custom data layers.
Therefore the modifier evaluation code tagged some layers so that they will not be
copied later on by calling `mesh_set_only_copy` in `mesh_calc_modifiers`.

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

M	source/blender/modifiers/intern/MOD_nodes.cc

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

diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 8f9aa5c89ad..72842a1d32d 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -1370,6 +1370,7 @@ static void requiredDataMask(Object *UNUSED(ob),
   /* We don't know what the node tree will need. If there are vertex groups, it is likely that the
    * node tree wants to access them. */
   r_cddata_masks->vmask |= CD_MASK_MDEFORMVERT;
+  r_cddata_masks->vmask |= CD_MASK_PROP_ALL;
 }
 
 ModifierTypeInfo modifierType_Nodes = {



More information about the Bf-blender-cvs mailing list