[LYN-3160] Removed IEditor::Get/SetEditMode and some additional unused (related) content in the InfoBar.
This commit is contained in:
-18
@@ -27,15 +27,6 @@ def testing_cvar(setMethod, methodName, label, value, compare):
|
||||
print('{} failed'.format(methodName))
|
||||
|
||||
|
||||
def testing_edit_mode(mode):
|
||||
general.set_edit_mode(mode)
|
||||
|
||||
if (general.get_edit_mode(mode)):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def testing_axis_constraints(constraint):
|
||||
|
||||
general.set_axis_constraint(constraint)
|
||||
@@ -58,15 +49,6 @@ compare = lambda lhs, rhs: rhs == int(lhs)
|
||||
testing_cvar(general.set_cvar_integer, 'set_cvar_integer', 'sys_LocalMemoryGeometryLimit', 33, compare)
|
||||
|
||||
|
||||
# ----- Test Edit Mode
|
||||
|
||||
if (testing_edit_mode("SELECT") and testing_edit_mode('SELECTAREA') and
|
||||
testing_edit_mode("MOVE") and testing_edit_mode("ROTATE") and
|
||||
testing_edit_mode("SCALE") and testing_edit_mode("TOOL")):
|
||||
|
||||
print("edit mode works")
|
||||
|
||||
|
||||
# ----- Test Axis Constraints
|
||||
|
||||
if (testing_axis_constraints("X") and testing_axis_constraints("Y") and
|
||||
|
||||
@@ -33,7 +33,6 @@ class TestEditorAutomation(object):
|
||||
"SetCVarFromFloat worked",
|
||||
"SetCVarFromString worked",
|
||||
"SetCVarFromInteger worked",
|
||||
"edit mode works",
|
||||
"axis constraint works",
|
||||
"end of editor utility tests"
|
||||
]
|
||||
@@ -48,7 +47,6 @@ class TestEditorAutomation(object):
|
||||
"set_cvar_float worked",
|
||||
"set_cvar_string worked",
|
||||
"set_cvar_integer worked",
|
||||
"edit mode works",
|
||||
"axis constraint works",
|
||||
"end of editor utility tests"
|
||||
]
|
||||
|
||||
-16
@@ -28,15 +28,6 @@ def testing_cvar(setMethod, methodName, label, value, compare):
|
||||
print('{} failed'.format(methodName))
|
||||
|
||||
|
||||
def testing_edit_mode(mode):
|
||||
python_editor_funcs.PythonEditorBus(bus.Broadcast, 'SetEditMode', mode)
|
||||
|
||||
if mode == python_editor_funcs.PythonEditorBus(bus.Broadcast, 'GetEditMode'):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
|
||||
def testing_axis_constraints(constraint):
|
||||
python_editor_funcs.PythonEditorBus(bus.Broadcast, 'SetAxisConstraint', constraint)
|
||||
|
||||
@@ -57,13 +48,6 @@ testing_cvar('SetCVarFromString', 'SetCVarFromString', 'e_ScreenShotFileFormat',
|
||||
compare = lambda lhs, rhs: rhs == int(lhs)
|
||||
testing_cvar('SetCVarFromInteger', 'SetCVarFromInteger', 'sys_LocalMemoryGeometryLimit', 33, compare)
|
||||
|
||||
# ----- Test Edit Mode
|
||||
|
||||
if (testing_edit_mode("SELECT") and testing_edit_mode('SELECTAREA') and
|
||||
testing_edit_mode("MOVE") and testing_edit_mode("ROTATE") and
|
||||
testing_edit_mode("SCALE") and testing_edit_mode("TOOL")):
|
||||
print("edit mode works")
|
||||
|
||||
# ----- Test Axis Constraints
|
||||
|
||||
if (testing_axis_constraints("X") and testing_axis_constraints("Y") and
|
||||
|
||||
Reference in New Issue
Block a user