diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-26 16:12:51 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-26 16:19:37 +0300 |
commit | 20621d46d143c0cc74d79b344e3ad0d1b68b2ec4 (patch) | |
tree | c28edb331a6e6337bbafcb797d9dd17a280da9ca /source/blender/alembic/intern/abc_object.cc | |
parent | ff1f1157065034e5e7212beb2b9be8173da80dff (diff) |
Alembic: fixed refcount issue when duplicating imported objects
Duplicating an imported object didn't increment the cache reader's refcount,
whereas removing the duplicate did decrement it. This caused problems.
Diffstat (limited to 'source/blender/alembic/intern/abc_object.cc')
-rw-r--r-- | source/blender/alembic/intern/abc_object.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_object.cc b/source/blender/alembic/intern/abc_object.cc index d2698da2cd3..94ec77f4191 100644 --- a/source/blender/alembic/intern/abc_object.cc +++ b/source/blender/alembic/intern/abc_object.cc @@ -370,4 +370,5 @@ void AbcObjectReader::incref() void AbcObjectReader::decref() { --m_refcount; + BLI_assert(m_refcount >= 0); } |