found text editor X/Y selections coords were booleans and corrections to operator calling script from last commit.

This commit is contained in:
Campbell Barton
2011-03-22 14:37:45 +00:00
parent f40d33f24b
commit 287a185e90
2 changed files with 3 additions and 8 deletions

View 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 **********************/

View 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():