Skip to content

Commit be76223

Browse files
authored
Merge pull request #109 from Unity-Technologies/UNI-23647-load-bundle-on-mac
UNI-23647 load plugins as bundles on mac
2 parents cd8c46c + 6a1b1dd commit be76223

File tree

1 file changed

+12
-1
lines changed
  • Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick

1 file changed

+12
-1
lines changed

Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick/commands.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,18 @@ def loadPlugin(self, plugin):
5858
return True
5959

6060
def loadDependencies(self):
61-
return self.loadPlugin('GamePipeline.mll') and self.loadPlugin('fbxmaya.mll')
61+
# GamePipeline plugin 'SendToUnitySelection' command used in Publish
62+
pluginsToLoad = ['GamePipeline', 'fbxmaya']
63+
64+
ext = "mll"
65+
if maya.cmds.about(macOS=True):
66+
ext = "bundle"
67+
68+
# iterate over all the plugins, loading them with extenstion ext, and combining the results
69+
# to return if any of the loads failed
70+
return reduce((lambda result, plugin: result and self.loadPlugin("{0}.{1}".format(plugin, ext))),
71+
pluginsToLoad,
72+
True)
6273

6374
def loadUnityFbxExportSettings(self):
6475
"""

0 commit comments

Comments
 (0)