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/intern
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/intern')
-rw-r--r--source/blender/geometry/intern/mesh_primitive_cuboid.cc8
1 files changed, 8 insertions, 0 deletions
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