Fix T61276: Make Single User unlinks original object.
In that case, we have to consider number of scenes using an object, not number of collections.
This commit is contained in:
parent
bf4f01779d
commit
af0eb938b8
Notes:
blender-bot
2023-02-14 03:49:16 +01:00
Referenced by issue #61276, Make Single User unlinks original object
|
@ -1596,7 +1596,7 @@ static void single_object_users_collection(
|
|||
Object *ob = cob->ob;
|
||||
/* an object may be in more than one collection */
|
||||
if ((ob->id.newid == NULL) && ((ob->flag & flag) == flag)) {
|
||||
if (!ID_IS_LINKED(ob) && ob->id.us > 1) {
|
||||
if (!ID_IS_LINKED(ob) && BKE_object_scenes_users_get(bmain, ob) > 1) {
|
||||
ID_NEW_SET(ob, BKE_object_copy(bmain, ob));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue