[Bf-blender-cvs] [2271b791149] collada: avoid duplicate deletion of temporary items
Gaia Clary
noreply at git.blender.org
Fri Sep 14 14:37:35 CEST 2018
Commit: 2271b791149e5c62fd905ed9384ea891251cf627
Author: Gaia Clary
Date: Fri Sep 14 14:37:23 2018 +0200
Branches: collada
https://developer.blender.org/rB2271b791149e5c62fd905ed9384ea891251cf627
avoid duplicate deletion of temporary items
===================================================================
M source/blender/collada/BCAnimationSampler.h
===================================================================
diff --git a/source/blender/collada/BCAnimationSampler.h b/source/blender/collada/BCAnimationSampler.h
index 15ad8deab2e..9d84581c655 100644
--- a/source/blender/collada/BCAnimationSampler.h
+++ b/source/blender/collada/BCAnimationSampler.h
@@ -62,7 +62,7 @@ public:
delete it->second;
}
- if (reference)
+ if (reference && reference->id.us == 0)
{
Main *bmain = CTX_data_main(mContext);
BKE_libblock_delete(bmain, &reference->id);
More information about the Bf-blender-cvs
mailing list