Blender V5.3
libocio_look.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#include "libocio_look.hh"
6
8
9namespace blender::ocio {
10
11LibOCIOLook::LibOCIOLook(const int index, const OCIO_NAMESPACE::ConstLookRcPtr &ocio_look)
12 : ocio_look_(ocio_look)
13{
14 this->index = index;
15 this->is_noop = (ocio_look == nullptr);
16
17 if (ocio_look_) {
18 const StringRefNull look_name = ocio_look_->getName();
19
21 if (split_view_specific_look(look_name, view, ui_name)) {
22 view_ = view;
23 ui_name_ = ui_name;
24 }
25 }
26}
27
28} // namespace blender::ocio
StringRefNull ui_name() const override
LibOCIOLook(int index, const OCIO_NAMESPACE::ConstLookRcPtr &ocio_look)
StringRefNull view() const override
bool split_view_specific_look(const StringRef look_name, StringRef &view, StringRef &ui_name)