diff --git a/source/MaterialXCore/Document.h b/source/MaterialXCore/Document.h index 45214a4429..90d6faf8fe 100644 --- a/source/MaterialXCore/Document.h +++ b/source/MaterialXCore/Document.h @@ -709,9 +709,10 @@ class MX_CORE_API Document : public GraphElement private: class Cache; - std::unique_ptr _cache; - // Data library for the document + + private: ConstDocumentPtr _dataLibrary; + std::unique_ptr _cache; }; /// Create a new Document.