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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-27 01:33:45 +0300
committerHans Goudey <h.goudey@me.com>2022-02-27 01:33:45 +0300
commit4f2f3114b7be2760d74ef1024626dd9f960a7bf3 (patch)
tree3582b57d4fbd5f2abff21fcd06483c18c055f55b /source
parentee160630c66b5b043554f6d16f1a2b8ab7129cee (diff)
Fix: Incorrect assert in curves code
The attribute data might be null if the number of curves is zero. While that is not common, an empty curves data-block is valid.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/curves_geometry.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curves_geometry.cc b/source/blender/blenkernel/intern/curves_geometry.cc
index eb2a0b37af2..68797942b56 100644
--- a/source/blender/blenkernel/intern/curves_geometry.cc
+++ b/source/blender/blenkernel/intern/curves_geometry.cc
@@ -145,7 +145,6 @@ MutableSpan<int8_t> CurvesGeometry::curve_types()
nullptr,
this->curve_size,
ATTR_CURVE_TYPE.c_str());
- BLI_assert(data != nullptr);
return {data, this->curve_size};
}