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:
Diffstat (limited to 'source/blender/blenkernel/intern/geometry.cc')
-rw-r--r--source/blender/blenkernel/intern/geometry.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/geometry.cc b/source/blender/blenkernel/intern/geometry.cc
index 014197ed423..58ec71108da 100644
--- a/source/blender/blenkernel/intern/geometry.cc
+++ b/source/blender/blenkernel/intern/geometry.cc
@@ -58,6 +58,14 @@ bool Geometry::is_mutable() const
}
/**
+ * Returns true when this geometry has a mesh component.
+ */
+bool Geometry::mesh_available() const
+{
+ return mesh_ != nullptr;
+}
+
+/**
* Replace the mesh in the geometry. The caller remains the owner of the given mesh and is
* responsible for freeing it eventually.
*/