[Bf-blender-cvs] [0b5cf91b890] master: Cleanup: use 'use_' prefix for RNA boolean

Campbell Barton noreply at git.blender.org
Fri Apr 29 03:54:44 CEST 2022


Commit: 0b5cf91b8908ad0b3a7ae401bcf74975acb47ded
Author: Campbell Barton
Date:   Fri Apr 29 09:43:03 2022 +1000
Branches: master
https://developer.blender.org/rB0b5cf91b8908ad0b3a7ae401bcf74975acb47ded

Cleanup: use 'use_' prefix for RNA boolean

===================================================================

M	release/scripts/startup/bl_ui/space_sequencer.py
M	source/blender/makesrna/intern/rna_space.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 8289b7b8556..7c7bb456473 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -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'
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 0ba8658568c..032ef86c172 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -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");



More information about the Bf-blender-cvs mailing list