add warning for unsupported element type

This commit is contained in:
TonyCrane 2022-01-25 14:41:11 +08:00
parent d694aed452
commit 416cc8e6d5
No known key found for this signature in database
GPG key ID: 2313A5058A9C637C

View file

@ -108,8 +108,8 @@ class SVGMobject(VMobject):
elif element.tagName in ['polygon', 'polyline']:
result.append(self.polygon_to_mobject(element))
else:
log.warning(f"Unsupported element type: {element.tagName}")
pass # TODO
# warnings.warn("Unknown element type: " + element.tagName)
result = [m for m in result if m is not None]
self.handle_transforms(element, VGroup(*result))
if len(result) > 1 and not self.unpack_groups: