Fix #113346: Append/Link fails if no name is specified #113350

Merged
Harley Acheson merged 1 commits from lichtwerk/blender:113346 into blender-v4.0-release 2023-10-09 18:29:59 +02:00

1 Commits

Author SHA1 Message Date
Philipp Oeser c2d5fc91ec Fix #113346: Append/Link fails if no name is specified
Caused by fa29d28d73 .

Code used to work like this:
- if items are selected, these are considered for Append/Link
-- name is ignored in that case
- if no items are selected, the name is considered for Append/Link

Selection with the mouse usually sets the name as well (unnecessarily
even) -- so this still worked fine even after fa29d28d73 .
Selecting All with 'A' does not set a name, but code from fa29d28d73
added the additional check to the early out and reports an error.

Now remove the additional check again, the logic following that code
takes care of handling ether selected items or a provided name just
fine.
2023-10-06 16:19:03 +02:00