Append: Reuse local data: remove limitation on directly selected data.
in asset context, when user drag & drop a material several time, they would still expect to re-use existing one instead of getting new copies of it, even if this material is directly appended (and not an indirect dependency of an object e.g.).
This commit is contained in:
@@ -674,10 +674,7 @@ static void wm_append_do(WMLinkAppendData *lapp_data,
|
||||
CLOG_INFO(&LOG, 3, "Appended ID '%s' is proxified, keeping it linked...", id->name);
|
||||
item->append_action = WM_APPEND_ACT_KEEP_LINKED;
|
||||
}
|
||||
/* Only re-use existing local ID for indirectly linked data, the ID explicitly selected by the
|
||||
* user we always fully append. */
|
||||
else if (do_reuse_existing_id && existing_local_id != NULL &&
|
||||
(item->append_tag & WM_APPEND_TAG_INDIRECT) != 0) {
|
||||
else if (do_reuse_existing_id && existing_local_id != NULL) {
|
||||
CLOG_INFO(&LOG, 3, "Appended ID '%s' as a matching local one, re-using it...", id->name);
|
||||
item->append_action = WM_APPEND_ACT_REUSE_LOCAL;
|
||||
item->customdata = existing_local_id;
|
||||
|
Reference in New Issue
Block a user