Welcome to mirror list, hosted at ThFree Co, Russian Federation.

usd_tests_common.h « tests « usd « io « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 949348da959c5527aa7f971e0e03c2236cc4bdda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2022 Blender Foundation. All rights reserved. */
#pragma once

#include <string>

namespace blender::io::usd {

/* Calls the function to load the USD plugins from the
 * USD data directory under the Blender bin directory
 * that was supplied as the --test-release-dir flag to `ctest`.
 * Thus function must be called before instantiating a USD
 * stage to avoid errors.  The returned string is the path to
 * the USD data files directory from which the plugins were
 * loaded. If the USD data files directory can't be determined,
 * plugin registration is skipped and the empty string is
 * returned. */
std::string register_usd_plugins_for_tests();

}  // namespace blender::io::usd