Blender V5.3
usd_utils.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include "BLI_string_ref.hh"
7
8#include <pxr/usd/sdf/path.h>
9#include <pxr/usd/usd/common.h>
10
11#include <string>
12
13namespace blender::io::usd {
14
22std::string make_safe_name(StringRef name, bool allow_unicode);
23
32std::string make_safe_primvar_name(StringRef name, bool allow_unicode);
33
43pxr::SdfPath get_unique_path(pxr::UsdStageRefPtr stage, const std::string &path);
44} // namespace blender::io::usd
pxr::SdfPath get_unique_path(pxr::UsdStageRefPtr stage, const std::string &path)
Definition usd_utils.cc:109
std::string make_safe_name(const StringRef name, bool allow_unicode)
Definition usd_utils.cc:83
std::string make_safe_primvar_name(const StringRef name, bool allow_unicode)
Definition usd_utils.cc:88