Skip to content

Commit

Permalink
use autoreloader in shelf menus
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeboers committed Jul 1, 2015
1 parent 922a467 commit 4851d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mayatools/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def default_constructor(maya_menu, actions=None):
return res


def action_dispatch(entrypoint=None, python=None, **kwargs):
def action_dispatch(entrypoint=None, python=None, reload=None, **kwargs):
with ticket_ui_context():
if entrypoint is not None:
func = resolve_entrypoint(entrypoint)
func = resolve_entrypoint(entrypoint, reload=reload)
func(*(kwargs.get('args') or ()), **(kwargs.get('kwargs') or {}))
elif python is not None:
eval(compile(python, '<menu action>', 'exec'), kwargs)
Expand Down

0 comments on commit 4851d58

Please sign in to comment.