fix the bug of outdated relative_point after command Z

This commit is contained in:
TonyCrane 2022-01-26 13:56:42 +08:00
parent 92adcd75d4
commit ff86b0e378
No known key found for this signature in database
GPG key ID: 2313A5058A9C637C

View file

@ -472,6 +472,7 @@ class VMobjectFromSVGPathstring(VMobject):
upper_command = command.upper() upper_command = command.upper()
if upper_command == "Z": if upper_command == "Z":
func() # `close_path` takes no arguments func() # `close_path` takes no arguments
relative_point = self.get_last_point()
continue continue
number_types = np.array(list(number_types_str)) number_types = np.array(list(number_types_str))