LibOverride: Make 'image/movieclip user` properties editable.
This commit is contained in:
parent
8843705f65
commit
a3e7280bd8
|
@ -701,6 +701,8 @@ static void rna_def_imageuser(BlenderRNA *brna)
|
|||
"Parameters defining how an Image data-block is used by another data-block");
|
||||
RNA_def_struct_path_func(srna, "rna_ImageUser_path");
|
||||
|
||||
RNA_define_lib_overridable(true);
|
||||
|
||||
prop = RNA_def_property(srna, "use_auto_refresh", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", IMA_ANIM_ALWAYS);
|
||||
RNA_def_property_ui_text(prop, "Auto Refresh", "Always refresh image on frame changes");
|
||||
|
@ -762,6 +764,8 @@ static void rna_def_imageuser(BlenderRNA *brna)
|
|||
RNA_def_property_int_sdna(prop, NULL, "tile");
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Tile", "Tile in tiled image");
|
||||
|
||||
RNA_define_lib_overridable(false);
|
||||
}
|
||||
|
||||
/* image.packed_files */
|
||||
|
|
|
@ -281,6 +281,8 @@ static void rna_def_movieclipUser(BlenderRNA *brna)
|
|||
"Parameters defining how a MovieClip data-block is used by another data-block");
|
||||
RNA_def_struct_path_func(srna, "rna_MovieClipUser_path");
|
||||
|
||||
RNA_define_lib_overridable(true);
|
||||
|
||||
prop = RNA_def_property(srna, "frame_current", PROP_INT, PROP_TIME);
|
||||
RNA_def_property_int_sdna(prop, NULL, "framenr");
|
||||
RNA_def_property_range(prop, MINAFRAME, MAXFRAME);
|
||||
|
@ -303,6 +305,8 @@ static void rna_def_movieclipUser(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "Render Undistorted", "Render preview using undistorted proxy");
|
||||
RNA_def_property_update(
|
||||
prop, NC_MOVIECLIP | ND_DISPLAY, "rna_MovieClipUser_proxy_render_settings_update");
|
||||
|
||||
RNA_define_lib_overridable(false);
|
||||
}
|
||||
|
||||
static void rna_def_movieClipScopes(BlenderRNA *brna)
|
||||
|
|
Loading…
Reference in New Issue