Fix T81573: Users refcount not incremented when creating a proxy.
Proxies are refcounting usages of objects, historical code was apparently missing that.
This commit is contained in:
parent
50ffcf12b2
commit
62f5232f37
Notes:
blender-bot
2023-02-14 08:49:53 +01:00
Referenced by issue #81573, Users refcount not incremented when creating a proxy but decremented when deleting it
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue