Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/geometry_set_instances.cc
| Show All 21 Lines | static void geometry_set_collect_recursive(const GeometrySet &geometry_set, | ||||
| Vector<GeometryInstanceGroup> &r_sets); | Vector<GeometryInstanceGroup> &r_sets); | ||||
| static void geometry_set_collect_recursive_collection(const Collection &collection, | static void geometry_set_collect_recursive_collection(const Collection &collection, | ||||
| const float4x4 &transform, | const float4x4 &transform, | ||||
| Vector<GeometryInstanceGroup> &r_sets); | Vector<GeometryInstanceGroup> &r_sets); | ||||
| static void add_final_mesh_as_geometry_component(const Object &object, GeometrySet &geometry_set) | static void add_final_mesh_as_geometry_component(const Object &object, GeometrySet &geometry_set) | ||||
| { | { | ||||
| Mesh *mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object(&const_cast<Object &>(object), | Mesh *mesh = BKE_modifier_get_evaluated_mesh_from_evaluated_object( | ||||
| false); | &const_cast<Object &>(object)); | ||||
| if (mesh != nullptr) { | if (mesh != nullptr) { | ||||
| BKE_mesh_wrapper_ensure_mdata(mesh); | BKE_mesh_wrapper_ensure_mdata(mesh); | ||||
| geometry_set.replace_mesh(mesh, GeometryOwnershipType::ReadOnly); | geometry_set.replace_mesh(mesh, GeometryOwnershipType::ReadOnly); | ||||
| } | } | ||||
| } | } | ||||
| GeometrySet object_get_evaluated_geometry_set(const Object &object) | GeometrySet object_get_evaluated_geometry_set(const Object &object) | ||||
| ▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines | |||||