Skip to content

Conversation

@sebastienblor
Copy link
Collaborator

Changes proposed in this pull request
The changes introduced in #2079 were actually pretty wrong, and caused by a miss-understanding of what the function was doing. This PR reverts most of it, and adds the explanations and comments that were missing in the original code.

In the function I had renamed as UpdateSceneChanges, some hydra primitives are marked as dirty. I thought the Sync function would be called immediately, thus updating the arnold scene, but it's actually called later on. So for clarity I'm renaming it as HasPendingChanges which tells us that a Sync call is going to happen shortly. In this case, we don't want to start the render just yet, cause we know the scene might change. For interactive renders it's not so bad because we can interrupt and restart the render to process the changes, but since we recently changes the arnold session to be "batch" in husk, this is preventing us from receiving some hydra notifications.

Issues fixed in this pull request
Fixes #2154

@sebastienblor sebastienblor changed the title Pr/2154 Fix handling of hydra updates in batch renders Dec 4, 2024
@sebastienblor sebastienblor merged commit eb1d604 into Autodesk:fix-7.3.5 Dec 4, 2024
9 checks passed
@sebastienblor sebastienblor deleted the pr/2154 branch December 4, 2024 17:15
sebastienblor added a commit that referenced this pull request Dec 5, 2024
* Fix handling of hydra updates in batch renders (#2155)

* Fix missing updates in husk #2154

* Update changelog

* Rename function for clarity

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants