diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-21 20:52:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-21 20:52:04 +0400 |
commit | 2970b7a735c75878eb51b141cc01a1a27f873eb7 (patch) | |
tree | 1813faa9d320155d037672fa6f3e8870b58c29d2 | |
parent | 081f3dd9fab7b2d0ea2b62411ee4653f1df7840c (diff) |
change name length from 32 to 64, perhaps we should have some constant here bpy.constants.NAME_MAX ? - but this hardly ever changes.
also hide allow overlap option for adding sequence strips, this was only intended for api use
-rw-r--r-- | release/scripts/startup/bl_operators/object.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 2 | ||||
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_add.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py index 358919ac888..151e1e93d8c 100644 --- a/release/scripts/startup/bl_operators/object.py +++ b/release/scripts/startup/bl_operators/object.py @@ -35,7 +35,7 @@ class SelectPattern(Operator): pattern = StringProperty( name="Pattern", description="Name filter using '*' and '?' wildcard chars", - maxlen=32, + maxlen=64, default="*", ) case_sensitive = BoolProperty( diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index 883bac84e78..2b820add10e 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1077,7 +1077,7 @@ class WM_OT_properties_context_change(Operator): context = StringProperty( name="Context", - maxlen=32, + maxlen=64, ) def execute(self, context): diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c index 2c3924e5407..97bfe1bafc2 100644 --- a/source/blender/editors/space_sequencer/sequencer_add.c +++ b/source/blender/editors/space_sequencer/sequencer_add.c @@ -89,6 +89,8 @@ static void sequencer_generic_props__internal(wmOperatorType *ot, int flag) { + PropertyRNA *prop; + if (flag & SEQPROP_STARTFRAME) RNA_def_int(ot->srna, "frame_start", 0, INT_MIN, INT_MAX, "Start Frame", "Start frame of the sequence strip", INT_MIN, INT_MAX); @@ -99,7 +101,9 @@ static void sequencer_generic_props__internal(wmOperatorType *ot, int flag) RNA_def_boolean(ot->srna, "replace_sel", 1, "Replace Selection", "Replace the current selection"); - RNA_def_boolean(ot->srna, "overlap", 0, "Allow Overlap", "Don't correct overlap on new sequence strips"); + /* only for python scripts which import strips and place them after */ + prop = RNA_def_boolean(ot->srna, "overlap", 0, "Allow Overlap", "Don't correct overlap on new sequence strips"); + RNA_def_property_flag(prop, PROP_HIDDEN); } static void sequencer_generic_invoke_path__internal(bContext *C, wmOperator *op, const char *identifier) |