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.
This commit is contained in:
Hans Goudey 2022-02-26 17:33:45 -05:00
parent ee160630c6
commit 4f2f3114b7
1 changed files with 0 additions and 1 deletions

View File

@ -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};
}