If width or heigth is 0 rlottie returned without drawing rect.
But it makes sense to draw line even if width or height is 0.
void VPath::VPathData::addRect(const VRectF &rect, VPath::Direction dir)
{
- if (rect.empty()) return;
-
float x = rect.x();
float y = rect.y();
float w = rect.width();
float h = rect.height();
+ if (vCompare(w, 0.f) && vCompare(h, 0.f)) return;
+
reserve(5, 6); // 1Move + 4Line + 1Close
if (dir == VPath::Direction::CW) {
moveTo(x + w, y);