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:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-26 16:12:51 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-26 16:19:37 +0300
commit20621d46d143c0cc74d79b344e3ad0d1b68b2ec4 (patch)
treec28edb331a6e6337bbafcb797d9dd17a280da9ca /source/blender/alembic/intern/abc_object.cc
parentff1f1157065034e5e7212beb2b9be8173da80dff (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.cc1
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);
}