Fix #105989: Outliner: Make Single User duplicates data #105991

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:105989 into main 2023-04-04 09:12:47 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser 3e82574d0f Fix #105989: Outliner: Make Single User duplicates data
This happens even though there is only one user.

The Outliner only implements this `Make Single User` for worlds
(`singleuser_world_fn`) and actions (`singleuser_action_fn`) [it is
questionable if the whole functionality could be removed really, but
this is for another report] and it uses `id_single_user` to do so --
this function does not check if we even have more than one user though,
so data gets duplicated resulting in duplicate worlds or actions even if
they only have one user and shouldnt be touched.

Now let `id_single_user` check usercount and only act if we have more
than one real users.
2023-04-03 15:55:36 +02:00