adding callback to reset the resolution when opening the file

This commit is contained in:
Kayla Man 2023-04-18 16:06:20 +08:00
parent 973caf2d6d
commit 5f78ba9bb8

View file

@ -56,6 +56,9 @@ class MaxHost(HostBase, IWorkfileHost, ILoadHost, INewPublisher):
rt.callbacks.addScript(rt.Name('systemPostNew'),
context_setting)
rt.callbacks.addScript(rt.Name('filePostOpen'),
context_setting)
def has_unsaved_changes(self):
# TODO: how to get it from 3dsmax?
return True