Skip to content

Commit

Permalink
Fixed OCIO bug with nuke-default's config.
Browse files Browse the repository at this point in the history
Simplified code.
  • Loading branch information
ggarra13 committed Sep 9, 2024
1 parent 7f7ee53 commit 9eb6b25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 2 additions & 0 deletions src/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ v1.2.7
- Added hotkeys entries for saturation more and saturation less. By default,
they are not assigned.
- Fixed tooltip in Gain slider not showing up.
- Fixed an OCIO bug when setting from the command-line the display/view with
nuke-default's config.ocio.


v1.2.6
Expand Down
3 changes: 2 additions & 1 deletion src/lib/mrvFl/mrvOCIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ namespace mrv
const std::string& combined, std::string& display,
std::string& view)
{

if (combined.empty() || combined == kInactive)
{
display.clear();
Expand All @@ -698,7 +699,7 @@ namespace mrv
.arg(combined);
throw std::runtime_error(err);
}

display = view.substr(pos + 1, view.size());
view = view.substr(0, pos - 1);
pos = display.find(')');
Expand Down
15 changes: 2 additions & 13 deletions src/lib/mrvGL/mrvTimelineViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1999,19 +1999,8 @@ namespace mrv
int viewIndex = m->value();
if (viewIndex >= 0)
{
std::string combined;
const Fl_Menu_Item* item = m->child(viewIndex);
char name[1024];
int ok = m->item_pathname(name, sizeof(name) - 1, item);
if (ok == 0)
{
combined = name;
}

if (combined != _("None"))
{
ocio::splitViewIntoDisplayView(combined, o.display, o.view);
}
const std::string& combined = ocio::view();
ocio::splitViewIntoDisplayView(combined, o.display, o.view);
}

std::string look = p.ui->uiOCIOLook->label();
Expand Down

0 comments on commit 9eb6b25

Please sign in to comment.