Skip to content

Commit

Permalink
When getting dependencies in Maya, we force the usage of new MayaPy p…
Browse files Browse the repository at this point in the history
…arser
  • Loading branch information
tpoveda committed Jan 28, 2021
1 parent edc5af9 commit 8f5f839
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion artella/plugins/getdependencies/getdependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ def _get_dependencies(self, dependency_files, dependencies_, show_dialogs=True,

if files_to_parse and recursive:
dcc_parser = parser.Parser()
deps_file_paths = dcc_parser.parse(files_to_parse, show_dialogs=show_dialogs) or dict()
if dcc.is_maya():
deps_file_paths = dcc_parser.parse(
files_to_parse, show_dialogs=show_dialogs, force_mayapy_parser=True) or dict()
else:
deps_file_paths = dcc_parser.parse(files_to_parse, show_dialogs=show_dialogs) or dict()
if deps_file_paths:
self._get_dependencies(deps_file_paths, dependencies_, show_dialogs=show_dialogs)

Expand Down

0 comments on commit 8f5f839

Please sign in to comment.