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:
@@ -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};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user