found text editor X/Y selections coords were booleans and corrections to operator...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 22 Mar 2011 14:37:45 +0000 (14:37 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 22 Mar 2011 14:37:45 +0000 (14:37 +0000)
source/blender/editors/space_text/text_ops.c
source/tests/bl_run_operators.py

index 0065c3317b801f269adcd3afe8d8bacc01c6919d..5325bed15fd32c2fca25e0bd038a0466efb48033 100644 (file)
@@ -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 **********************/
index 703adafad91c9c8af7fc55aaf3a840386ccbe54d..f1f21d3bd71b7bbd698b88e0036a756e84202575 100644 (file)
@@ -27,7 +27,6 @@ import bpy
 import sys
 
 op_blacklist = (
-    "script.reload",
     "script.reload",
     "export*.*",
     "import*.*",
@@ -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():