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 <bastien@blender.org>2021-09-21 16:12:05 +0300
committerBastien Montagne <bastien@blender.org>2021-09-24 13:40:04 +0300
commit501b0190d679b54f47a11d2c3d345e4af3a0c64c (patch)
tree19a9b047b7066cc8f98b2f06192fb139d8e90c96 /source/blender/windowmanager
parentcdcdd2c479b59a0030557882d05aebd08dfeca44 (diff)
LibOverride: Deprecate Proxies: Add auto-conversion on file load.
This commit also add an experimental userPreferences to prevent proxies conversions on file load, and reporting for amount of coverted proxies (and possible issues). Note that potentially linked proxies from other libraries are not hamdled here (this feature seems to be broken anyway in master currently?).
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 2ce2bcc2f3c..bbab3a8b326 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -857,6 +857,20 @@ static void file_read_reports_finalize(BlendFileReadReport *bf_reports)
duration_lib_override_recursive_resync_seconds);
}
+ if (bf_reports->count.linked_proxies != 0 ||
+ bf_reports->count.proxies_to_lib_overrides_success != 0 ||
+ bf_reports->count.proxies_to_lib_overrides_failures != 0) {
+ BKE_reportf(bf_reports->reports,
+ RPT_WARNING,
+ "Proxies are deprecated (%d proxies were automatically converted to library "
+ "overrides, %d proxies could not be converted and %d linked proxies were kept "
+ "untouched). If you need to keep proxies for the time being, please disable the "
+ "`Proxy to Override Auto Conversion` in Experimental user preferences",
+ bf_reports->count.proxies_to_lib_overrides_success,
+ bf_reports->count.proxies_to_lib_overrides_failures,
+ bf_reports->count.linked_proxies);
+ }
+
BLI_linklist_free(bf_reports->resynced_lib_overrides_libraries, NULL);
bf_reports->resynced_lib_overrides_libraries = NULL;
}