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

Abstract Render Collector: Preserve instance id when replacing with new instance #405

Merged
merged 19 commits into from
Apr 11, 2024

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Apr 11, 2024

Changelog Description

The abstract render collector converts a Render Instance and adds it to the publishing context, but for After Effects and Fusion these "replaced" existing instances (pyblish.api.Instance). However, by nature of removing the original instance and adding a new one this basically meant that now the new instance would not inherit the original instance's id and thus any logs generated on the original instance being replaced would not show in the publisher UI for the new instance.

This PR changes it so that it doesn't replace the original instance at all - but just updates the source instance with the data from the render instance's data.

Additional info

This implements a different fix as was implemented in this PR #217

Testing notes:

  1. Submitting renders from Fusion should still work as expected
  2. Submitting renders from After Effects should still work as expected.

@kalisp kalisp self-requested a review April 11, 2024 12:10
BigRoy and others added 4 commits April 11, 2024 14:38
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
@BigRoy BigRoy requested a review from iLLiCiTiT April 11, 2024 14:25
Copy link
Member

@iLLiCiTiT iLLiCiTiT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it. @kalisp please re-validate if we won't break stuff.

@kalisp
Copy link
Member

kalisp commented Apr 11, 2024

I am missing app_version in Fusion Deadline submission, investigating when it disappeared
image

Original `instance` variable might shadow wanted `render-like` instance if wrong order of instances get processed.
Copy link
Member

@kalisp kalisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue in Fusion Deadline submission fixed by cc42c4d

@kalisp kalisp merged commit a75e55b into ynput:develop Apr 11, 2024
2 of 3 checks passed
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.

4 participants