diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-09 18:51:38 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-09 18:52:49 +0300 |
commit | 62f5232f37b9755bfa07a174a47017cd1609fb5a (patch) | |
tree | 8d91d7c3dbb897153f0a225693a33c30048d66c6 /source | |
parent | 50ffcf12b2ce38f47b8ea39b278c2871209228cf (diff) |
Fix T81573: Users refcount not incremented when creating a proxy.
Proxies are refcounting usages of objects, historical code was
apparently missing that.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c index d401f263871..a8017569ba9 100644 --- a/source/blender/blenkernel/intern/object.c +++ b/source/blender/blenkernel/intern/object.c @@ -2060,8 +2060,8 @@ void BKE_object_make_proxy(Main *bmain, Object *ob, Object *target, Object *cob) } ob->proxy = target; + id_us_plus(&target->id); ob->proxy_group = cob; - id_lib_extern(&target->id); DEG_id_tag_update(&ob->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_ANIMATION); DEG_id_tag_update(&target->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY | ID_RECALC_ANIMATION); |