Skip to content

Root node create is triggered when closing the application #357

Description

@moonyuet

we need to deal with the issue whenon_root_create performed when we close the script/close the application. We can leave it as a separate issue.

Whenever in GUI mode and you close nuke, then before it closes it actually clears the current comp and that triggers a root node creation and hence that callback. That in turn does some of our set resolution logic, etc. but also trigger workfile template build if that's configured. Something that would be really good to avoid if we can.

Originally posted by @BigRoy in #353 (comment)

Current Behavior

As came up here whenever you shut down Nuke (when running in GUI mode) when you close down the app before it shuts down it clears the current comp and apparently generates a new root node, which our nuke.addOnCreate registered callback acts upon.

Expected Behavior

When Nuke is being shut down, we should not be triggering any logic that we intended for new files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions