Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/nodes/node_geo_attribute_fill.cc
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | switch (data_type) { | ||||
| } | } | ||||
| case CD_PROP_FLOAT3: { | case CD_PROP_FLOAT3: { | ||||
| const float3 value = params.get_input<float3>("Value"); | const float3 value = params.get_input<float3>("Value"); | ||||
| MutableSpan<float3> attribute_span = attribute->get_span_for_write_only<float3>(); | MutableSpan<float3> attribute_span = attribute->get_span_for_write_only<float3>(); | ||||
| attribute_span.fill(value); | attribute_span.fill(value); | ||||
| break; | break; | ||||
| } | } | ||||
| case CD_PROP_COLOR: { | case CD_PROP_COLOR: { | ||||
| const Color4f value = params.get_input<Color4f>("Value_002"); | const ColorGeometry value = params.get_input<ColorGeometry>("Value_002"); | ||||
| MutableSpan<Color4f> attribute_span = attribute->get_span_for_write_only<Color4f>(); | MutableSpan<ColorGeometry> attribute_span = | ||||
| attribute->get_span_for_write_only<ColorGeometry>(); | |||||
| attribute_span.fill(value); | attribute_span.fill(value); | ||||
| break; | break; | ||||
| } | } | ||||
| case CD_PROP_BOOL: { | case CD_PROP_BOOL: { | ||||
| const bool value = params.get_input<bool>("Value_003"); | const bool value = params.get_input<bool>("Value_003"); | ||||
| MutableSpan<bool> attribute_span = attribute->get_span_for_write_only<bool>(); | MutableSpan<bool> attribute_span = attribute->get_span_for_write_only<bool>(); | ||||
| attribute_span.fill(value); | attribute_span.fill(value); | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||