Fix T63004: Make Links operator would still allow collection instancing

for objects other than Empties

In 2.8 support for dupli-group instancing for non-empty objects was
removed (rB2eca054e14b1), so better prevent operators from setting
this...

Reviewers: brecht

Maniphest Tasks: T63004

Differential Revision: https://developer.blender.org/D4599
This commit is contained in:
Philipp Oeser 2019-03-27 14:57:13 +01:00
parent 73b55a5508
commit 9624df5d1e
Notes: blender-bot 2023-02-14 03:13:18 +01:00
Referenced by issue #63004, Linked Instanced collection data loss
1 changed files with 5 additions and 1 deletions

View File

@ -1361,9 +1361,13 @@ static bool allow_make_links_data(const int type, Object *ob_src, Object *ob_dst
return true;
}
break;
case MAKE_LINKS_DUPLICOLLECTION:
if (ob_dst->type == OB_EMPTY) {
return true;
}
break;
case MAKE_LINKS_ANIMDATA:
case MAKE_LINKS_GROUP:
case MAKE_LINKS_DUPLICOLLECTION:
return true;
case MAKE_LINKS_MODIFIERS:
if (!ELEM(OB_EMPTY, ob_src->type, ob_dst->type)) {