Fix T42882: Now warn user when trying to append/link from older blender files.

Since we do not make any conversion in this case, worth warning user about
potential issues!
This commit is contained in:
Bastien Montagne 2014-12-12 12:11:48 +01:00
parent cea086dd97
commit a6343696c1
Notes: blender-bot 2024-04-11 14:26:06 +02:00
Referenced by issue #42882, Animation data are not appended even if I append armature object.
1 changed files with 9 additions and 0 deletions

View File

@ -2643,6 +2643,15 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
lib = mainl->curlib;
BLI_assert(lib);
if (mainl->versionfile < BLENDER_VERSION ||
(mainl->versionfile == BLENDER_VERSION && mainl->subversionfile < BLENDER_SUBVERSION))
{
BKE_reportf(op->reports, RPT_WARNING,
"Linking or appending from an older .blend file format (%d.%d), no conversion will be done! "
"You may want to re-save your lib file with current Blender",
mainl->versionfile, mainl->subversionfile);
}
if (totfiles == 0) {
BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
}