Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-12-12 14:11:48 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2014-12-12 14:13:30 +0300
commita6343696c1f349a75604df24d80f63278ebc19f4 (patch)
treee5c15a54cdc3e4411dc176dcf35f19ecbd80298f /source/blender/windowmanager
parentcea086dd97ce9794bed0c9e6293031b6cf2fc9d9 (diff)
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!
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_operators.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 7581fde5a5d..923a71cfe3e 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -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);
}