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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 ················ | 297 ················ |
298 /* Get object to work on - use a menu if we need to... */ | 298 /* Get object to work on - use a menu if we need to... */ |
299 if (ob->dup_group && ob->dup_group->id.lib) { | 299 if (ob->dup_group && ob->dup_group->id.lib) { |
300 /* gives menu with list of objects in group */ | 300 /* gives menu with list of objects in group */ |
301 //proxy_group_objects_menu(C, op, ob, ob->dup_group); | 301 //proxy_group_objects_menu(C, op, ob, ob->dup_group); |
302 WM_enum_search_invoke(C, op, evt); | 302 WM_enum_search_invoke(C, op, evt); |
303 return OPERATOR_CANCELLED; | 303 return OPERATOR_CANCELLED; |
304 | 304 |
305 } | 305 } |
306 else if (ob->id.lib) { | 306 else if (ob->id.lib) { |
307 » » uiPopupMenu *pup = uiPupMenuBegin(C, IFACE_("OK?"), ICON_QUESTIO
N); | 307 » » uiPopupMenu *pup = uiPupMenuBegin(C, "OK?", ICON_QUESTION); |
308 uiLayout *layout = uiPupMenuLayout(pup); | 308 uiLayout *layout = uiPupMenuLayout(pup); |
309 ················ | 309 ················ |
310 /* create operator menu item with relevant properties filled in
*/ | 310 /* create operator menu item with relevant properties filled in
*/ |
311 uiItemFullO_ptr(layout, op->type, op->type->name, ICON_NONE, NUL
L, WM_OP_EXEC_REGION_WIN, UI_ITEM_O_RETURN_PROPS); | 311 uiItemFullO_ptr(layout, op->type, op->type->name, ICON_NONE, NUL
L, WM_OP_EXEC_REGION_WIN, UI_ITEM_O_RETURN_PROPS); |
312 ················ | 312 ················ |
313 /* present the menu and be done... */ | 313 /* present the menu and be done... */ |
314 uiPupMenuEnd(C, pup); | 314 uiPupMenuEnd(C, pup); |
315 } | 315 } |
316 else { | 316 else { |
317 /* error.. cannot continue */ | 317 /* error.. cannot continue */ |
(...skipping 1844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 /* api callbacks */ | 2162 /* api callbacks */ |
2163 ot->invoke = drop_named_material_invoke; | 2163 ot->invoke = drop_named_material_invoke; |
2164 ot->poll = ED_operator_objectmode; | 2164 ot->poll = ED_operator_objectmode; |
2165 ········ | 2165 ········ |
2166 /* flags */ | 2166 /* flags */ |
2167 ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL; | 2167 ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL; |
2168 ········ | 2168 ········ |
2169 /* properties */ | 2169 /* properties */ |
2170 RNA_def_string(ot->srna, "name", "Material", MAX_ID_NAME - 2, "Name", "M
aterial name to assign"); | 2170 RNA_def_string(ot->srna, "name", "Material", MAX_ID_NAME - 2, "Name", "M
aterial name to assign"); |
2171 } | 2171 } |
OLD | NEW |