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

not working for .gde files #29

Open
engimaxp opened this issue Aug 8, 2022 · 0 comments
Open

not working for .gde files #29

engimaxp opened this issue Aug 8, 2022 · 0 comments

Comments

@engimaxp
Copy link

engimaxp commented Aug 8, 2022

if file.find('.gd.') < 0 and file.find(".gd") > 0:

The first if statement is always true: file.find('.gd.') < 0

The second if statement is also match for both .gd file and .gdc file ,which makes it's quite confusion

and I guess its not working for gde file, I use a low version of anima , and it report cant find any animation

in replacement:

		for file in list:
			if file.ends_with('.gdc'):
				filtered.push_back(file.replace('.gdc', '.gd'))
			elif file.ends_with('.gde'):
				filtered.push_back(file.replace('.gde', '.gd'))
			elif file.ends_with('.gd'):
				filtered.push_back(file)
		_animations_list = filtered

BTW, Anima is a great plugin ! Thanks a lot !

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

No branches or pull requests

1 participant