diff options
author | Thomas Dinges <blender@dingto.org> | 2013-12-14 13:48:12 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-12-14 13:48:12 +0400 |
commit | 01fc7a687a19ef2dc8dac43ed9db69da35e3a55a (patch) | |
tree | dad6bc578350d2bc471a16f69e45ee998af29489 /source/blender/editors/space_logic | |
parent | dda37dbc5c91d109777e396e7c1a819474f19f05 (diff) |
Code cleanup: Remove "TexFace to Material Convert", from the file menu. This was used for conversion from older 2.5x files. The do_version() code is still there and functioning though.
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r-- | source/blender/editors/space_logic/logic_ops.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source/blender/editors/space_logic/logic_ops.c b/source/blender/editors/space_logic/logic_ops.c index fac564f33fb..dbbe87c3f1e 100644 --- a/source/blender/editors/space_logic/logic_ops.c +++ b/source/blender/editors/space_logic/logic_ops.c @@ -706,37 +706,6 @@ static void LOGIC_OT_actuator_move(wmOperatorType *ot) RNA_def_enum(ot->srna, "direction", logicbricks_move_direction, 1, "Direction", "Move Up or Down"); } -/* ************* TexFace Converter Operator ************* */ -static int texface_convert_exec(bContext *C, wmOperator *UNUSED(op)) -{ - Main *bmain = CTX_data_main(C); - do_version_tface(bmain, 0); - - return OPERATOR_FINISHED; -} - -static int texface_convert_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) -{ - return texface_convert_exec(C, op); -} - -static void LOGIC_OT_texface_convert(wmOperatorType *ot) -{ - /* identifiers */ - ot->name = "TexFace to Material Converter"; - ot->description = "Convert old texface settings into material. It may create new materials if needed"; - ot->idname = "LOGIC_OT_texface_convert"; - - /* api callbacks */ - ot->invoke = texface_convert_invoke; - ot->exec = texface_convert_exec; -// ot->poll = texface_convert_poll; - - /* flags */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; -} - - /* ************************ view ********************* */ static int logic_view_all_exec(bContext *C, wmOperator *op) @@ -782,6 +751,5 @@ void ED_operatortypes_logic(void) WM_operatortype_append(LOGIC_OT_actuator_remove); WM_operatortype_append(LOGIC_OT_actuator_add); WM_operatortype_append(LOGIC_OT_actuator_move); - WM_operatortype_append(LOGIC_OT_texface_convert); WM_operatortype_append(LOGIC_OT_view_all); } |