[Bf-blender-cvs] [d9859ef766c] virtual-array-attributes: cleanup
Jacques Lucke
noreply at git.blender.org
Tue Apr 13 13:25:47 CEST 2021
Commit: d9859ef766c8a1a42825a35118eb746ad48b022d
Author: Jacques Lucke
Date: Tue Apr 13 12:23:59 2021 +0200
Branches: virtual-array-attributes
https://developer.blender.org/rBd9859ef766c8a1a42825a35118eb746ad48b022d
cleanup
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc
===================================================================
diff --git a/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc b/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc
index 9aa25496c14..1fc2e110ecd 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc
@@ -240,7 +240,7 @@ static void attribute_math_calc(GeometryComponent &component, const GeoNodeExecP
return;
}
- VMutableArray_Span<float> result_span{*attribute_result};
+ MutableSpan<float> result_span = attribute_result.as_span();
/* Note that passing the data with `get_span<float>()` works
* because the attributes were accessed with #CD_PROP_FLOAT. */
@@ -271,7 +271,6 @@ static void attribute_math_calc(GeometryComponent &component, const GeoNodeExecP
do_math_operation(attribute_a->typed<float>(), result_span, operation);
}
- result_span.apply();
attribute_result.save();
}
More information about the Bf-blender-cvs
mailing list