Fix T50334: Also select indirectly imported objects when linking/appending.
Since we create a base and instantiate them, they become directly linked, so makes sense to also select them if requested.
This commit is contained in:
parent
7ba2356a53
commit
934b3f3682
Notes:
blender-bot
2024-03-22 15:57:27 +01:00
Referenced by issue #50334, Appended group not selected
|
@ -9808,9 +9808,15 @@ static void give_base_to_objects(Main *mainvar, Scene *scene, View3D *v3d, Libra
|
|||
if (active_lay) {
|
||||
ob->lay = active_lay;
|
||||
}
|
||||
if (flag & FILE_AUTOSELECT) {
|
||||
/* Note that link_object_postprocess() already checks for FILE_AUTOSELECT flag,
|
||||
* but it will miss objects from non-instanciated groups... */
|
||||
ob->flag |= SELECT;
|
||||
/* do NOT make base active here! screws up GUI stuff, if you want it do it on src/ level */
|
||||
}
|
||||
|
||||
base->lay = ob->lay;
|
||||
base->object = ob;
|
||||
base->lay = ob->lay;
|
||||
base->flag = ob->flag;
|
||||
|
||||
CLAMP_MIN(ob->id.us, 0);
|
||||
|
|
Loading…
Reference in New Issue