make sure objects dragged into the viewport are not hidden.

This commit is contained in:
Campbell Barton 2013-02-27 04:57:53 +00:00
parent 68f9226d5b
commit 29b4b56c66

View File

@ -2112,6 +2112,7 @@ static int add_named_exec(bContext *C, wmOperator *op)
}
basen->lay = basen->object->lay = scene->lay;
basen->object->restrictflag &= ~OB_RESTRICT_VIEW;
if (event) {
ARegion *ar = CTX_wm_region(C);