Skip to content

Commit

Permalink
Engine.context_change() works in headless mode (#55)
Browse files Browse the repository at this point in the history
This fixes an issue causing engine.context_change() to fail when not running Nuke in a UI mode.
  • Loading branch information
aparna-d2 authored and manneohrstrom committed Jul 9, 2018
1 parent da6374a commit 4dd45c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def post_context_change(self, old_context, new_context):
if not self.hiero_enabled:
self.post_app_init_nuke()

if self._context_change_menu_rebuild:
if self.has_ui and self._context_change_menu_rebuild:
self.menu_generator.create_menu()

#####################################################################################
Expand Down

0 comments on commit 4dd45c4

Please sign in to comment.