Cleanup: use 'use_' prefix for RNA booleans

This commit is contained in:
Campbell Barton
2020-08-17 12:35:26 +10:00
parent 9762c3892e
commit bee4a2f97c
2 changed files with 2 additions and 2 deletions

View File

@@ -327,7 +327,7 @@ class SEQUENCER_MT_view(Menu):
if is_preview:
layout.separator()
if st.display_mode == 'IMAGE':
layout.prop(st, "zoom_to_fit")
layout.prop(st, "use_zoom_to_fit")
layout.prop(ed, "show_overlay", text="Show Frame Overlay")
layout.prop(st, "show_safe_areas", text="Show Safe Areas")
layout.prop(st, "show_metadata", text="Show Metadata")

View File

@@ -4796,7 +4796,7 @@ static void rna_def_space_sequencer(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Waveform Displaying", "How Waveforms are drawn");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_SEQUENCER, NULL);
prop = RNA_def_property(srna, "zoom_to_fit", PROP_BOOLEAN, PROP_NONE);
prop = RNA_def_property(srna, "use_zoom_to_fit", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_ZOOM_TO_FIT);
RNA_def_property_ui_text(
prop, "Zoom to Fit", "Automatically zoom preview image to make it fully fit the region");