[Bf-blender-cvs] [64fa97631ba] usd-importer-T81257: Disallow USDPrimReader copy and assignment.
Michael A. Kowalski
noreply at git.blender.org
Thu Nov 5 21:36:27 CET 2020
Commit: 64fa97631ba4a421e4d2469409973a9813110280
Author: Michael A. Kowalski
Date: Thu Nov 5 15:33:57 2020 -0500
Branches: usd-importer-T81257
https://developer.blender.org/rB64fa97631ba4a421e4d2469409973a9813110280
Disallow USDPrimReader copy and assignment.
===================================================================
M source/blender/io/usd/import/usd_reader_prim.h
===================================================================
diff --git a/source/blender/io/usd/import/usd_reader_prim.h b/source/blender/io/usd/import/usd_reader_prim.h
index e8dcd631487..6265fcdecdf 100644
--- a/source/blender/io/usd/import/usd_reader_prim.h
+++ b/source/blender/io/usd/import/usd_reader_prim.h
@@ -51,6 +51,10 @@ class USDPrimReader {
virtual ~USDPrimReader();
+ // Disallow assignment and copying.
+ USDPrimReader(const USDPrimReader&) = delete;
+ USDPrimReader& operator=(const USDPrimReader&) = delete;
+
const pxr::UsdPrim &prim() const;
const std::string &prim_path() const
More information about the Bf-blender-cvs
mailing list