Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scour animated paths #280

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

yttiktak
Copy link

@yttiktak yttiktak commented Jun 5, 2021

animate/attributeName/d needs special treatment to keep node counts equal

Just swapped python3 for python
Entire paths can be animated. That data now gets scoured.
python should be pointed to python3 in my os if I want/need to use it.
These are ';' delimited path data that must keep the same number of nodes, so the only cleaning is via serializePath
"""
oldPathStr = element.getAttribute('values')
oldPathStrs = oldPathStr.split(';')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
oldPathStrs = oldPathStr.split(';')
if oldPathStr == '':
return
oldPathStrs = oldPathStr.split(';')

And test for empty values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants