From f4a6f99b54f0e916c4f4816b29c21a2d93c8ba71 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 1 Feb 2023 20:11:50 -0800 Subject: [PATCH] Check _use_winding_fill on the submobject level --- manimlib/mobject/types/vectorized_mobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index 046dcc48..47dfeef5 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -1297,11 +1297,11 @@ class VMobject(Mobject): back_stroke_datas.append(submob.data[stroke_names][indices]) if front_stroke: stroke_datas.append(submob.data[stroke_names][indices]) - if has_fill and self._use_winding_fill: + if has_fill and submob._use_winding_fill: data = submob.data[fill_names] data["base_point"][:] = data["point"][0] fill_datas.append(data[indices]) - if has_fill and not self._use_winding_fill: + if has_fill and not submob._use_winding_fill: fill_datas.append(submob.data[fill_names]) fill_indices.append(submob.get_triangulation()) if has_fill and not front_stroke: