Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in on_context_change() add has_ui check #55

Merged

Conversation

aparna-d2
Copy link
Contributor

@aparna-d2 aparna-d2 commented Jun 22, 2018

Doing engine.context_change() while running a nuke -t session produces the error:

'NoneType' object has no attribute 'create_menu'

Checking for has_ui before attempting to create menu fixes that.

@manneohrstrom
Copy link
Contributor

Great! Thank you for this! I'll fold it into master now and it will be part of the next integrations release.

@manneohrstrom manneohrstrom merged commit 4dd45c4 into shotgunsoftware:master Jul 9, 2018
kramester added a commit to chicken-bone/tk-nuke that referenced this pull request Jul 10, 2018
Engine.context_change() works in headless mode (shotgunsoftware#55)
kramester added a commit to chicken-bone/tk-nuke that referenced this pull request Jul 10, 2018
Engine.context_change() works in headless mode (shotgunsoftware#55)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants