[Bf-blender-cvs] [64b5d4dbbd2] temp-geometry-nodes-mix-attributes: add comment

Jacques Lucke noreply at git.blender.org
Thu Dec 3 16:35:09 CET 2020


Commit: 64b5d4dbbd26e3410b6d1a5beaf92f63efbe544b
Author: Jacques Lucke
Date:   Thu Dec 3 16:33:51 2020 +0100
Branches: temp-geometry-nodes-mix-attributes
https://developer.blender.org/rB64b5d4dbbd26e3410b6d1a5beaf92f63efbe544b

add comment

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

M	source/blender/nodes/geometry/nodes/node_geo_mix_attributes.cc

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

diff --git a/source/blender/nodes/geometry/nodes/node_geo_mix_attributes.cc b/source/blender/nodes/geometry/nodes/node_geo_mix_attributes.cc
index 17bf69f8abb..d51fa618f4e 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_mix_attributes.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_mix_attributes.cc
@@ -96,6 +96,7 @@ static void mix_attributes_calc(GeometryComponent &component, const GeoNodeExecP
   CustomDataType result_type = CD_PROP_COLOR;
   AttributeDomain result_domain = ATTR_DOMAIN_POINT;
 
+  /* Use type and domain from the result attribute, if it exists already. */
   const ReadAttributePtr result_attribute_read = component.attribute_try_get_for_read(result_name);
   if (result_attribute_read) {
     result_type = result_attribute_read->custom_data_type();



More information about the Bf-blender-cvs mailing list