Fix T41905: Linked objects/groups assigned to 'wrong' active layers when called from 3DView
Typo using v3d->layact instead of v3d->lay when linking and v3d is available in context. This can be backported to 2.72.
This commit is contained in:
parent
52330e5349
commit
b4efe25119
Notes:
blender-bot
2023-06-12 00:52:52 +02:00
Referenced by issue #41905, linked or appended objects appear always on a firm selection of layers (file specific issue)
|
@ -8999,7 +8999,7 @@ static ID *append_named_part_ex(const bContext *C, Main *mainl, FileData *fd, co
|
|||
/* link at active layer (view3d->lay if in context, else scene->lay */
|
||||
if ((flag & FILE_ACTIVELAY)) {
|
||||
View3D *v3d = CTX_wm_view3d(C);
|
||||
ob->lay = v3d ? v3d->layact : scene->lay;
|
||||
ob->lay = v3d ? v3d->lay : scene->lay;
|
||||
}
|
||||
|
||||
ob->mode = OB_MODE_OBJECT;
|
||||
|
|
Loading…
Reference in New Issue