Blender  V3.3
usd_tests_common.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2022 Blender Foundation. All rights reserved. */
3 #pragma once
4 
5 #include <string>
6 
7 namespace blender::io::usd {
8 
9 /* Calls the function to load the USD plugins from the
10  * USD data directory under the Blender bin directory
11  * that was supplied as the --test-release-dir flag to `ctest`.
12  * Thus function must be called before instantiating a USD
13  * stage to avoid errors. The returned string is the path to
14  * the USD data files directory from which the plugins were
15  * loaded. If the USD data files directory can't be determined,
16  * plugin registration is skipped and the empty string is
17  * returned. */
18 std::string register_usd_plugins_for_tests();
19 
20 } // namespace blender::io::usd
std::string register_usd_plugins_for_tests()