Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-05-17 10:41:32 +0300
committerHans Goudey <h.goudey@me.com>2022-05-17 10:41:32 +0300
commitf11401d32a30ddbfa775177b67ad78100dc6c5ea (patch)
tree548aff018541e9af466c8833d2d82cce11c14ee6 /source/blender/geometry
parent51195c17ac441b44117a19d0408cdcf13d0466c5 (diff)
Cleanup: Deduplicate Alembic procedural bounding box mesh creation
This removes the manual construction of a box mesh in the mesh sequence cache modifier when the Alembic procedural is enabled. It also removes the use of `BKE_object_boundbox_get` which doesn't make sense on a non-evaluated object. Differential Revision: https://developer.blender.org/D14958
Diffstat (limited to 'source/blender/geometry')
-rw-r--r--source/blender/geometry/GEO_mesh_primitive_cuboid.hh2
-rw-r--r--source/blender/geometry/intern/mesh_primitive_cuboid.cc8
2 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/geometry/GEO_mesh_primitive_cuboid.hh b/source/blender/geometry/GEO_mesh_primitive_cuboid.hh
index d9901db9f15..6107b15b62d 100644
--- a/source/blender/geometry/GEO_mesh_primitive_cuboid.hh
+++ b/source/blender/geometry/GEO_mesh_primitive_cuboid.hh
@@ -16,4 +16,6 @@ namespace blender::geometry {
Mesh *create_cuboid_mesh(
const float3 &size, int verts_x, int verts_y, int verts_z, const bke::AttributeIDRef &uv_id);
+Mesh *create_cuboid_mesh(const float3 &size, int verts_x, int verts_y, int verts_z);
+
} // namespace blender::geometry
diff --git a/source/blender/geometry/intern/mesh_primitive_cuboid.cc b/source/blender/geometry/intern/mesh_primitive_cuboid.cc
index e41516d0486..07ac2419ad9 100644
--- a/source/blender/geometry/intern/mesh_primitive_cuboid.cc
+++ b/source/blender/geometry/intern/mesh_primitive_cuboid.cc
@@ -420,4 +420,12 @@ Mesh *create_cuboid_mesh(const float3 &size,
return mesh;
}
+Mesh *create_cuboid_mesh(const float3 &size,
+ const int verts_x,
+ const int verts_y,
+ const int verts_z)
+{
+ return create_cuboid_mesh(size, verts_x, verts_y, verts_z, {});
+}
+
} // namespace blender::geometry