AYON menu would be registered when the workspace has been changed

This commit is contained in:
Kayla Man 2024-02-06 14:25:12 +08:00
parent 77f59eb9ef
commit f83d0f9749

View file

@ -59,6 +59,8 @@ class MaxHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
rt.callbacks.addScript(rt.Name('filePostOpen'),
lib.check_colorspace)
rt.callbacks.addScript(rt.Name('postWorkspaceChange'),
self._deferred_menu_creation)
def has_unsaved_changes(self):
# TODO: how to get it from 3dsmax?