Skip to content

Commit

Permalink
Ensure that the ADP dialog box will not pop up and hang the applicati…
Browse files Browse the repository at this point in the history
…on in batch mode (Autodesk#1327) (Autodesk#1328)

Co-authored-by: Julian Hodgson <[email protected]>
  • Loading branch information
jhodgson and Julian Hodgson authored Oct 19, 2022
1 parent 2f29c43 commit 00dbb30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions render_delegate/render_delegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,12 @@ HdArnoldRenderDelegate::HdArnoldRenderDelegate(bool isBatch, const TfToken &cont
#else
_isArnoldActive = AiUniverseIsActive();
#endif
if (_isBatch) {
#if ARNOLD_VERSION_NUMBER >= 70104
// Ensure that the ADP dialog box will not pop up and hang the application
AiADPDisableDialogWindow();
#endif
}
if (!_isArnoldActive) {
AiADPAddProductMetadata(AI_ADP_PLUGINNAME, AtString{"arnold-usd"});
AiADPAddProductMetadata(AI_ADP_PLUGINVERSION, AtString{AI_VERSION});
Expand Down

0 comments on commit 00dbb30

Please sign in to comment.