Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_select.c
| Show First 20 Lines • Show All 612 Lines • ▼ Show 20 Lines | CTX_DATA_BEGIN (C, Base *, base, visible_bases) | ||||
| changed = true; | changed = true; | ||||
| } | } | ||||
| } | } | ||||
| CTX_DATA_END; | CTX_DATA_END; | ||||
| return changed; | return changed; | ||||
| } | } | ||||
| /* build the menu. */ | /* build the menu. */ | ||||
| pup = uiPupMenuBegin(C, IFACE_("Select Group"), ICON_NONE); | pup = UI_popup_menu_begin(C, IFACE_("Select Group"), ICON_NONE); | ||||
| layout = uiPupMenuLayout(pup); | layout = UI_popup_menu_layout(pup); | ||||
| for (i = 0; i < group_count; i++) { | for (i = 0; i < group_count; i++) { | ||||
| group = ob_groups[i]; | group = ob_groups[i]; | ||||
| uiItemStringO(layout, group->id.name + 2, 0, "OBJECT_OT_select_same_group", "group", group->id.name + 2); | uiItemStringO(layout, group->id.name + 2, 0, "OBJECT_OT_select_same_group", "group", group->id.name + 2); | ||||
| } | } | ||||
| uiPupMenuEnd(C, pup); | UI_popup_menu_end(C, pup); | ||||
| return changed; /* The operator already handle this! */ | return changed; /* The operator already handle this! */ | ||||
| } | } | ||||
| static bool select_grouped_object_hooks(bContext *C, Object *ob) | static bool select_grouped_object_hooks(bContext *C, Object *ob) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| View3D *v3d = CTX_wm_view3d(C); | View3D *v3d = CTX_wm_view3d(C); | ||||
| ▲ Show 20 Lines • Show All 568 Lines • Show Last 20 Lines | |||||