OLD | NEW |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 WM_operatortype_append(OBJECT_OT_hook_add_selob); | 231 WM_operatortype_append(OBJECT_OT_hook_add_selob); |
232 WM_operatortype_append(OBJECT_OT_hook_add_newob); | 232 WM_operatortype_append(OBJECT_OT_hook_add_newob); |
233 WM_operatortype_append(OBJECT_OT_hook_remove); | 233 WM_operatortype_append(OBJECT_OT_hook_remove); |
234 WM_operatortype_append(OBJECT_OT_hook_select); | 234 WM_operatortype_append(OBJECT_OT_hook_select); |
235 WM_operatortype_append(OBJECT_OT_hook_assign); | 235 WM_operatortype_append(OBJECT_OT_hook_assign); |
236 WM_operatortype_append(OBJECT_OT_hook_reset); | 236 WM_operatortype_append(OBJECT_OT_hook_reset); |
237 WM_operatortype_append(OBJECT_OT_hook_recenter); | 237 WM_operatortype_append(OBJECT_OT_hook_recenter); |
238 | 238 |
239 WM_operatortype_append(OBJECT_OT_bake_image); | 239 WM_operatortype_append(OBJECT_OT_bake_image); |
240 WM_operatortype_append(OBJECT_OT_drop_named_material); | 240 WM_operatortype_append(OBJECT_OT_drop_named_material); |
| 241 |
| 242 WM_operatortype_append(OBJECT_OT_lod_add); |
| 243 WM_operatortype_append(OBJECT_OT_lod_remove); |
241 } | 244 } |
242 | 245 |
243 void ED_operatormacros_object(void) | 246 void ED_operatormacros_object(void) |
244 { | 247 { |
245 wmOperatorType *ot; | 248 wmOperatorType *ot; |
246 wmOperatorTypeMacro *otmacro; | 249 wmOperatorTypeMacro *otmacro; |
247 ········ | 250 ········ |
248 ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate
Objects", | 251 ot = WM_operatortype_append_macro("OBJECT_OT_duplicate_move", "Duplicate
Objects", |
249 "Duplicate selected objects and move t
hem", OPTYPE_UNDO | OPTYPE_REGISTER); | 252 "Duplicate selected objects and move t
hem", OPTYPE_UNDO | OPTYPE_REGISTER); |
250 if (ot) { | 253 if (ot) { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 RNA_string_set(kmi->ptr, "value_2", "ENABLED"); | 482 RNA_string_set(kmi->ptr, "value_2", "ENABLED"); |
480 | 483 |
481 /* for modes/object types that allow 'connected' mode, add the Alt O key
*/ | 484 /* for modes/object types that allow 'connected' mode, add the Alt O key
*/ |
482 if (do_connected) { | 485 if (do_connected) { |
483 kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle_enum", OK
EY, KM_PRESS, KM_ALT, 0); | 486 kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle_enum", OK
EY, KM_PRESS, KM_ALT, 0); |
484 RNA_string_set(kmi->ptr, "data_path", "tool_settings.proportiona
l_edit"); | 487 RNA_string_set(kmi->ptr, "data_path", "tool_settings.proportiona
l_edit"); |
485 RNA_string_set(kmi->ptr, "value_1", "DISABLED"); | 488 RNA_string_set(kmi->ptr, "value_1", "DISABLED"); |
486 RNA_string_set(kmi->ptr, "value_2", "CONNECTED"); | 489 RNA_string_set(kmi->ptr, "value_2", "CONNECTED"); |
487 } | 490 } |
488 } | 491 } |
OLD | NEW |