Skip to content

Commit

Permalink
Merge pull request #1508 from ziqidong/master
Browse files Browse the repository at this point in the history
optix screenshot save as exr
  • Loading branch information
legobadman authored Nov 7, 2023
2 parents afdf50b + 7cf54f7 commit dc667c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui/zenoedit/viewport/optixviewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,11 @@ void OptixWorker::recordVideo(VideoRecInfo recInfo)

void OptixWorker::screenShoot(QString path, QString type, int resx, int resy)
{
bool aov = zeno::getSession().userData().has("output_aov") ? zeno::getSession().userData().get2<bool>("output_aov") : false;
bool exr = zeno::getSession().userData().has("output_exr") ? zeno::getSession().userData().get2<bool>("output_exr") : false;
zeno::scope_exit sp([=]() {
zeno::getSession().userData().set2("output_aov", aov);
zeno::getSession().userData().set2("output_exr", exr);
});
zeno::getSession().userData().set2("output_aov", false);
zeno::getSession().userData().set2("output_exr", false);
zeno::getSession().userData().set2("output_exr", path.right(4) == ".exr" ? true : false);
auto [x, y] = m_zenoVis->getSession()->get_window_size();
if (!m_zenoVis->getSession()->is_lock_window())
resx = x, resy = y;
Expand Down

0 comments on commit dc667c2

Please sign in to comment.