diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 17:37:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-22 17:37:45 +0300 |
commit | 287a185e909bf833414e14a50864e8cd0f80f0b8 (patch) | |
tree | bce9f5c9733e1dfbcc2c75652d8bb1a8b5ca5fc5 | |
parent | f40d33f24b85a1c1e0e8d8cb0e42146ebcdef5a9 (diff) |
found text editor X/Y selections coords were booleans and corrections to operator calling script from last commit.
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 4 | ||||
-rw-r--r-- | source/tests/bl_run_operators.py | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 0065c3317b8..5325bed15fd 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -2683,8 +2683,8 @@ void TEXT_OT_cursor_set(wmOperatorType *ot) ot->poll= text_region_edit_poll; /* properties */ - RNA_def_boolean(ot->srna, "x", 0, "X", "X-coordinate to set cursor to."); - RNA_def_boolean(ot->srna, "y", 0, "Y", "X-coordinate to set cursor to."); + RNA_def_int(ot->srna, "x", 0, INT_MIN, INT_MAX, "X", "", INT_MIN, INT_MAX); + RNA_def_int(ot->srna, "y", 0, INT_MIN, INT_MAX, "Y", "", INT_MIN, INT_MAX); } /******************* line number operator **********************/ diff --git a/source/tests/bl_run_operators.py b/source/tests/bl_run_operators.py index 703adafad91..f1f21d3bd71 100644 --- a/source/tests/bl_run_operators.py +++ b/source/tests/bl_run_operators.py @@ -28,7 +28,6 @@ import sys op_blacklist = ( "script.reload", - "script.reload", "export*.*", "import*.*", "*.save_*", @@ -70,13 +69,11 @@ def run_ops(operators, setup_func=None): bpy.ops.wm.read_factory_settings() setup_func() - continue + for mode in ('EXEC_DEFAULT', 'INVOKE_DEFAULT'): try: op(mode) - #print(" - pass") except: - #print(" - fail") #import traceback #traceback.print_exc() pass @@ -129,8 +126,6 @@ def ctx_editmode_text(): def ctx_editmode_armature(): bpy.ops.object.armature_add() bpy.ops.object.mode_set(mode='EDIT') - bpy.ops.armature.select_all(action='TOGGLE') - bpy.ops.armature.delete() def ctx_editmode_lattice(): |