Skip to content
Snippets Groups Projects
Commit 80d193c5 authored by Pratik Borhade's avatar Pratik Borhade Committed by Thomas Dinges
Browse files

Fix T100040: Crash when transform applied on multi-user image

Affected by rB8621fdb10dc4
Crash if single-user data is created when we apply transform
on multi-user image data. Crash occurs because creation of new copy
was not handled in `single_obdata_users` for empty objects (image for example)

Reviewed By: dfelinto, mont29

Maniphest Tasks: T100040

Differential Revision: https://developer.blender.org/D15587
parent ae459317
No related branches found
No related tags found
No related merge requests found
......@@ -1822,6 +1822,11 @@ static void single_obdata_users(
DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
switch (ob->type) {
case OB_EMPTY:
ob->data = ID_NEW_SET(
ob->data,
BKE_id_copy_ex(bmain, ob->data, NULL, LIB_ID_COPY_DEFAULT | LIB_ID_COPY_ACTIONS));
break;
case OB_LAMP:
ob->data = la = ID_NEW_SET(
ob->data,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment