From eda8cb318d548e4d871e2c71423a74e7f1d23995 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Fri, 2 Oct 2015 18:35:10 +0200 Subject: [PATCH] fix a serialization issue reported by Frances Juhe --- src/bsdfs/blendbsdf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bsdfs/blendbsdf.cpp b/src/bsdfs/blendbsdf.cpp index e98264d6..db524cfa 100644 --- a/src/bsdfs/blendbsdf.cpp +++ b/src/bsdfs/blendbsdf.cpp @@ -79,6 +79,8 @@ public: m_weight = static_cast(manager->getInstance(stream)); m_bsdfs.push_back(static_cast(manager->getInstance(stream))); m_bsdfs.push_back(static_cast(manager->getInstance(stream))); + m_bsdfs[0]->incRef(); + m_bsdfs[1]->incRef(); configure(); }