Skip to content

Commit

Permalink
Make sure to install script editor callback in main namespace (fixes #29
Browse files Browse the repository at this point in the history
)
  • Loading branch information
justinfx committed Jun 30, 2017
1 parent 32dc3d4 commit 9ac4c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MayaSublime.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def _set_maya_callback_enabled(self, enable, quiet=False):
"""
host, port = self.sock.getsockname()
cmd = "_MayaSublime_streamScriptEditor({0}, host={1!r}, port={2})".format(enable, host, port)
return _send_to_maya(cmd, quiet=quiet)
return _send_to_maya(cmd, quiet=quiet, wrap=_settings['no_collisions'])

@classmethod
def _st2_remove_reader(cls):
Expand Down Expand Up @@ -520,7 +520,7 @@ def _st2_replace_reader(cls, reader):
@classmethod
def install_maya_callback(cls):
"""Send the callback logic to Maya"""
return _send_to_maya(cls.PY_MAYA_CALLBACK, quiet=True)
return _send_to_maya(cls.PY_MAYA_CALLBACK, quiet=True, wrap=_settings['no_collisions'])

@classmethod
def set_maya_output_enabled(cls, enable):
Expand Down

0 comments on commit 9ac4c3a

Please sign in to comment.