diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-04-17 08:01:13 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-04-29 20:19:19 +0300 |
commit | 9b92ce9dc00971cd9f7f0d0ba6109a9cba2090bd (patch) | |
tree | ba6189d6c4a8872f4cc48a88c5a39730012c44b2 /intern/cycles/hydra/render_delegate.cpp | |
parent | 060a50a5f72a0ccdb754bf155aa2ed394a1bcda5 (diff) |
Cycles: add USD as a file format for Cycles standalone rendering
Long term, this should replace the XML format. This reuses the Hydra render
delegate implementation, and so supports the same features. The same command
line options and GUI work for both XML and USD also.
The implementation of this is still disabled, waiting for some refactoring of
USD library linking. However we want the Cycles code to be in sync between
repositories for the 3.2 release.
Ref T96731
Diffstat (limited to 'intern/cycles/hydra/render_delegate.cpp')
-rw-r--r-- | intern/cycles/hydra/render_delegate.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/hydra/render_delegate.cpp b/intern/cycles/hydra/render_delegate.cpp index 9ae0241260c..8671ac742be 100644 --- a/intern/cycles/hydra/render_delegate.cpp +++ b/intern/cycles/hydra/render_delegate.cpp @@ -119,10 +119,12 @@ SessionParams GetSessionParams(const HdRenderSettingsMap &settings) } // namespace -HdCyclesDelegate::HdCyclesDelegate(const HdRenderSettingsMap &settingsMap, Session *session_) +HdCyclesDelegate::HdCyclesDelegate(const HdRenderSettingsMap &settingsMap, + Session *session_, + const bool keep_nodes) : HdRenderDelegate() { - _renderParam = session_ ? std::make_unique<HdCyclesSession>(session_) : + _renderParam = session_ ? std::make_unique<HdCyclesSession>(session_, keep_nodes) : std::make_unique<HdCyclesSession>(GetSessionParams(settingsMap)); // If the delegate owns the session, pull any remaining settings |