Merge branch 'blender-v3.4-release'

This commit is contained in:
Bastien Montagne 2022-11-17 12:21:10 +01:00
commit dad8f4ac09
2 changed files with 27 additions and 6 deletions

View File

@ -345,8 +345,12 @@ if(APPLE)
else()
set(WITH_COREAUDIO OFF)
endif()
if(UNIX AND NOT APPLE)
option(WITH_JACK "Enable JACK Support (http://www.jackaudio.org)" ON)
if(NOT WIN32)
if(APPLE)
option(WITH_JACK "Enable JACK Support (http://www.jackaudio.org)" OFF)
else()
option(WITH_JACK "Enable JACK Support (http://www.jackaudio.org)" ON)
endif()
option(WITH_JACK_DYNLOAD "Enable runtime dynamic JACK libraries loading" OFF)
else()
set(WITH_JACK OFF)

View File

@ -720,8 +720,12 @@ static ID *rna_ID_override_create(ID *id, Main *bmain, bool remap_local_usages)
return local_id;
}
static ID *rna_ID_override_hierarchy_create(
ID *id, Main *bmain, Scene *scene, ViewLayer *view_layer, ID *id_instance_hint)
static ID *rna_ID_override_hierarchy_create(ID *id,
Main *bmain,
Scene *scene,
ViewLayer *view_layer,
ID *id_instance_hint,
bool do_fully_editable)
{
if (!ID_IS_OVERRIDABLE_LIBRARY(id)) {
return NULL;
@ -735,8 +739,15 @@ static ID *rna_ID_override_hierarchy_create(
BPy_BEGIN_ALLOW_THREADS;
# endif
BKE_lib_override_library_create(
bmain, scene, view_layer, NULL, id, id, id_instance_hint, &id_root_override, false);
BKE_lib_override_library_create(bmain,
scene,
view_layer,
NULL,
id,
id,
id_instance_hint,
&id_root_override,
do_fully_editable);
# ifdef WITH_PYTHON
BPy_END_ALLOW_THREADS;
@ -2141,6 +2152,12 @@ static void rna_def_ID(BlenderRNA *brna)
"",
"Another ID (usually an Object or Collection) used as a hint to decide where to "
"instantiate the new overrides");
RNA_def_boolean(func,
"do_fully_editable",
false,
"",
"Make all library overrides generated by this call fully editable by the user "
"(none will be 'system overrides')");
func = RNA_def_function(srna, "override_template_create", "rna_ID_override_template_create");
RNA_def_function_ui_description(func, "Create an override template for this ID");