Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/node_geometry_exec.cc
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | return component.attribute_get_constant_for_read_converted( | ||||
| domain, CD_PROP_FLOAT, type, &value); | domain, CD_PROP_FLOAT, type, &value); | ||||
| } | } | ||||
| if (found_socket->type == SOCK_VECTOR) { | if (found_socket->type == SOCK_VECTOR) { | ||||
| const float3 value = this->get_input<float3>(found_socket->identifier); | const float3 value = this->get_input<float3>(found_socket->identifier); | ||||
| return component.attribute_get_constant_for_read_converted( | return component.attribute_get_constant_for_read_converted( | ||||
| domain, CD_PROP_FLOAT3, type, &value); | domain, CD_PROP_FLOAT3, type, &value); | ||||
| } | } | ||||
| if (found_socket->type == SOCK_RGBA) { | if (found_socket->type == SOCK_RGBA) { | ||||
| const Color4f value = this->get_input<Color4f>(found_socket->identifier); | const ColorGeometry value = this->get_input<ColorGeometry>(found_socket->identifier); | ||||
| return component.attribute_get_constant_for_read_converted( | return component.attribute_get_constant_for_read_converted( | ||||
| domain, CD_PROP_COLOR, type, &value); | domain, CD_PROP_COLOR, type, &value); | ||||
| } | } | ||||
| BLI_assert(false); | BLI_assert(false); | ||||
| return component.attribute_get_constant_for_read(domain, type, default_value); | return component.attribute_get_constant_for_read(domain, type, default_value); | ||||
| } | } | ||||
| CustomDataType GeoNodeExecParams::get_input_attribute_data_type( | CustomDataType GeoNodeExecParams::get_input_attribute_data_type( | ||||
| ▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines | |||||