[Bf-blender-cvs] [f707783d5f9] master: LibOverride Auto Resync: Add option to disable it in Experimental userpref.
Bastien Montagne
noreply at git.blender.org
Fri Mar 12 16:47:06 CET 2021
Commit: f707783d5f9fedbe2503d841bc8a74bed6092cdb
Author: Bastien Montagne
Date: Fri Mar 12 16:45:45 2021 +0100
Branches: master
https://developer.blender.org/rBf707783d5f9fedbe2503d841bc8a74bed6092cdb
LibOverride Auto Resync: Add option to disable it in Experimental userpref.
Some older .blend files won't react nicely to auto-resync, they need to
get manually fixed with `resync enforce` first.
===================================================================
M release/scripts/startup/bl_ui/space_userpref.py
M source/blender/blenkernel/intern/blendfile.c
M source/blender/makesdna/DNA_userdef_types.h
M source/blender/makesrna/intern/rna_userdef.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index b214dc0c245..5fcd84d119f 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -2269,6 +2269,7 @@ class USERPREF_PT_experimental_debugging(ExperimentalPanel, Panel):
self._draw_items(
context, (
({"property": "use_undo_legacy"}, "T60695"),
+ ({"property": "override_auto_resync"}, "T83811"),
({"property": "use_cycles_debug"}, None),
),
)
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c
index d3dfe60c444..967eb81026c 100644
--- a/source/blender/blenkernel/intern/blendfile.c
+++ b/source/blender/blenkernel/intern/blendfile.c
@@ -395,7 +395,7 @@ static void setup_app_data(bContext *C,
BKE_main_id_refcount_recompute(bmain, false);
}
- if (mode != LOAD_UNDO) {
+ if (mode != LOAD_UNDO && !USER_EXPERIMENTAL_TEST(&U, no_override_auto_resync)) {
BKE_lib_override_library_main_resync(
bmain,
curscene,
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h
index bd8f3cd95a7..233c476cbf2 100644
--- a/source/blender/makesdna/DNA_userdef_types.h
+++ b/source/blender/makesdna/DNA_userdef_types.h
@@ -635,6 +635,7 @@ typedef struct UserDef_FileSpaceData {
typedef struct UserDef_Experimental {
/* Debug options, always available. */
char use_undo_legacy;
+ char no_override_auto_resync;
char use_cycles_debug;
char SANITIZE_AFTER_HERE;
/* The following options are automatically sanitized (set to 0)
@@ -645,7 +646,7 @@ typedef struct UserDef_Experimental {
char use_switch_object_operator;
char use_sculpt_tools_tilt;
char use_asset_browser;
- char _pad[7];
+ char _pad[6];
/** `makesdna` does not allow empty structs. */
} UserDef_Experimental;
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 4097e2dddea..e07d46dbe3e 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -6245,6 +6245,14 @@ static void rna_def_userdef_experimental(BlenderRNA *brna)
"Undo Legacy",
"Use legacy undo (slower than the new default one, but may be more stable in some cases)");
+ prop = RNA_def_property(srna, "override_auto_resync", PROP_BOOLEAN, PROP_NONE);
+ RNA_def_property_boolean_negative_sdna(prop, NULL, "no_override_auto_resync", 1);
+ RNA_def_property_ui_text(
+ prop,
+ "Override Auto Resync",
+ "Enable library overrides automatic resync detection and process on file load. Disable when "
+ "dealing with older .blend files that need manual Resync (Enforce) handling");
+
prop = RNA_def_property(srna, "use_new_point_cloud_type", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "use_new_point_cloud_type", 1);
RNA_def_property_ui_text(
More information about the Bf-blender-cvs
mailing list