Cleanup: use 'use_' prefix for RNA boolean

This commit is contained in:
Campbell Barton 2022-04-29 09:43:03 +10:00
parent 1e23304fbc
commit 0b5cf91b89
2 changed files with 2 additions and 2 deletions

View File

@ -439,7 +439,7 @@ class SEQUENCER_MT_view(Menu):
layout.operator_context = 'INVOKE_REGION_WIN'
layout.operator("sequencer.view_all")
layout.operator("view2d.zoom_border", text="Zoom")
layout.prop(st, "clamp_view")
layout.prop(st, "use_clamp_view")
if is_preview:
layout.operator_context = 'INVOKE_REGION_PREVIEW'

View File

@ -5739,7 +5739,7 @@ static void rna_def_space_sequencer(BlenderRNA *brna)
prop, "Use Proxies", "Use optimized files for faster scrubbing when available");
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_SEQUENCER, "rna_SequenceEditor_update_cache");
prop = RNA_def_property(srna, "clamp_view", PROP_BOOLEAN, PROP_NONE);
prop = RNA_def_property(srna, "use_clamp_view", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_CLAMP_VIEW);
RNA_def_property_boolean_funcs(
prop, "rna_SequenceEditor_clamp_view_get", "rna_SequenceEditor_clamp_view_set");