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:
authorAlexander Gavrilov <angavrilov@gmail.com>2022-01-12 21:53:54 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2022-01-18 11:45:27 +0300
commit542d15b1cd7efe85c0f64c48dbd52b47f35950f8 (patch)
tree8d0ca0c441e5426f4929bb8037552983061ed15b
parent1b946319757af390b85cf10ccf423528b1c48aec (diff)
Allow overriding motion path settings.
Motion paths themselves aren't getting saved (not sure if they are without overrides), but being able to override options makes them usable even if it's necessary to regenerate every edit session. Differential Revision: https://developer.blender.org/D13842
-rw-r--r--source/blender/makesrna/intern/rna_animviz.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_animviz.c b/source/blender/makesrna/intern/rna_animviz.c
index 1511921cef0..0525d2f6fb1 100644
--- a/source/blender/makesrna/intern/rna_animviz.c
+++ b/source/blender/makesrna/intern/rna_animviz.c
@@ -207,6 +207,8 @@ static void rna_def_animviz_paths(BlenderRNA *brna)
RNA_def_struct_ui_text(
srna, "Motion Path Settings", "Motion Path settings for animation visualization");
+ RNA_define_lib_overridable(true);
+
/* Enums */
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "path_type");
@@ -301,6 +303,8 @@ static void rna_def_animviz_paths(BlenderRNA *brna)
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_property_ui_text(
prop, "Has Motion Paths", "Are there any bone paths that will need updating (read-only)");
+
+ RNA_define_lib_overridable(false);
}
/* --- */
@@ -312,6 +316,7 @@ void rna_def_animviz_common(StructRNA *srna)
prop = RNA_def_property(srna, "animation_visualization", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_NEVER_NULL);
RNA_def_property_pointer_sdna(prop, NULL, "avs");
+ RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_ui_text(prop, "Animation Visualization", "Animation data for this data-block");
}
@@ -328,6 +333,7 @@ static void rna_def_animviz(BlenderRNA *brna)
/* motion path settings (nested struct) */
prop = RNA_def_property(srna, "motion_path", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_NEVER_NULL);
+ RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
RNA_def_property_struct_type(prop, "AnimVizMotionPaths");
RNA_def_property_pointer_funcs(prop, "rna_AnimViz_motion_paths_get", NULL, NULL, NULL);
RNA_def_property_ui_text(prop, "Motion Paths", "Motion Path settings for visualization");