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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakowalski <makowalski@nvidia.com>2021-03-11 23:14:06 +0300
committermakowalski <makowalski@nvidia.com>2021-03-11 23:14:06 +0300
commit3fdfa0782da55683e2cc617efafb5e7ff21ba7fa (patch)
tree966532087c14c46097e65cbbe32bdebfdb34f979 /source/blender/io/usd/intern/usd_reader_mesh.h
parent54b5ecc058fb06b5b14396d720d2de97a4da54a9 (diff)
USD Import: remove UsdPrimReader stage member.
The UsdPrimReader class doesn't need a stage pointer as a member because the stage can implicitly be accessed through the prim itself, as long as the prim is valid. I removed the UsdPrimReader::stage_ member and updated the relevant constructors and function calls. Also, updated the various readers to construct schemas directly from the contained prim, e.g., pxr::UsdLuxRectLight rect_light(prim_)
Diffstat (limited to 'source/blender/io/usd/intern/usd_reader_mesh.h')
-rw-r--r--source/blender/io/usd/intern/usd_reader_mesh.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/io/usd/intern/usd_reader_mesh.h b/source/blender/io/usd/intern/usd_reader_mesh.h
index 2215bb9fadf..e7564b424d8 100644
--- a/source/blender/io/usd/intern/usd_reader_mesh.h
+++ b/source/blender/io/usd/intern/usd_reader_mesh.h
@@ -48,8 +48,7 @@ class USDMeshReader : public USDGeomReader {
bool is_initial_load_;
public:
- USDMeshReader(pxr::UsdStageRefPtr stage,
- const pxr::UsdPrim &object,
+ USDMeshReader(const pxr::UsdPrim &object,
const USDImportParams &import_params,
ImportSettings &settings);