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:
Diffstat (limited to 'source/blender/io/collada/BCAnimationSampler.h')
-rw-r--r--source/blender/io/collada/BCAnimationSampler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/io/collada/BCAnimationSampler.h b/source/blender/io/collada/BCAnimationSampler.h
index 34aec00374e..f7f2464a637 100644
--- a/source/blender/io/collada/BCAnimationSampler.h
+++ b/source/blender/io/collada/BCAnimationSampler.h
@@ -40,7 +40,8 @@ class BCAnimation {
BCAnimation(bContext *C, Object *ob) : mContext(C)
{
Main *bmain = CTX_data_main(mContext);
- reference = BKE_object_copy(bmain, ob);
+ reference = (Object *)BKE_id_copy(bmain, &ob->id);
+ id_us_min(&reference->id);
}
~BCAnimation()