Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/geometry_set_instances.cc
| Show First 20 Lines • Show All 372 Lines • ▼ Show 20 Lines | static void join_instance_groups_mesh(Span<GeometryInstanceGroup> set_groups, | ||||
| Vector<GeometryComponentType> component_types; | Vector<GeometryComponentType> component_types; | ||||
| component_types.append(GeometryComponentType::Mesh); | component_types.append(GeometryComponentType::Mesh); | ||||
| if (convert_points_to_vertices) { | if (convert_points_to_vertices) { | ||||
| component_types.append(GeometryComponentType::PointCloud); | component_types.append(GeometryComponentType::PointCloud); | ||||
| } | } | ||||
| /* Don't copy attributes that are stored directly in the mesh data structs. */ | /* Don't copy attributes that are stored directly in the mesh data structs. */ | ||||
| Map<std::string, AttributeKind> attributes; | Map<std::string, AttributeKind> attributes; | ||||
| gather_attribute_info(attributes, component_types, set_groups, {"position", "material_index"}); | gather_attribute_info( | ||||
| attributes, component_types, set_groups, {"position", "material_index", "shade_smooth"}); | |||||
| join_attributes( | join_attributes( | ||||
| set_groups, component_types, attributes, static_cast<GeometryComponent &>(dst_component)); | set_groups, component_types, attributes, static_cast<GeometryComponent &>(dst_component)); | ||||
| } | } | ||||
| static void join_instance_groups_pointcloud(Span<GeometryInstanceGroup> set_groups, | static void join_instance_groups_pointcloud(Span<GeometryInstanceGroup> set_groups, | ||||
| GeometrySet &result) | GeometrySet &result) | ||||
| { | { | ||||
| int totpoint = 0; | int totpoint = 0; | ||||
| ▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines | |||||