Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_header.c
| Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | void uiTemplateHeader3D(uiLayout *layout, struct bContext *C) | ||||
| RNA_pointer_create(&scene->id, &RNA_ToolSettings, ts, &toolsptr); | RNA_pointer_create(&scene->id, &RNA_ToolSettings, ts, &toolsptr); | ||||
| RNA_pointer_create(&scene->id, &RNA_Scene, scene, &sceneptr); | RNA_pointer_create(&scene->id, &RNA_Scene, scene, &sceneptr); | ||||
| block = uiLayoutGetBlock(layout); | block = uiLayoutGetBlock(layout); | ||||
| UI_block_func_handle_set(block, do_view3d_header_buttons, NULL); | UI_block_func_handle_set(block, do_view3d_header_buttons, NULL); | ||||
| /* other buttons: */ | /* other buttons: */ | ||||
| UI_block_emboss_set(block, UI_EMBOSS); | UI_block_emboss_set(block, UI_EMBOSS); | ||||
| row = uiLayoutRow(layout, true); | row = uiLayoutRow(layout, true); | ||||
| uiItemR(row, &v3dptr, "pivot_point", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); | uiItemR(row, &v3dptr, "pivot_point", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); | ||||
| if (!ob || ELEM(ob->mode, OB_MODE_OBJECT, OB_MODE_POSE, OB_MODE_WEIGHT_PAINT)) { | if (!ob || ELEM(ob->mode, OB_MODE_OBJECT, OB_MODE_POSE, OB_MODE_WEIGHT_PAINT)) { | ||||
| uiItemR(row, &v3dptr, "use_pivot_point_align", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); | uiItemR(row, &v3dptr, "use_pivot_point_align", UI_ITEM_R_ICON_ONLY, "", ICON_NONE); | ||||
| } | } | ||||
| if (obedit == NULL && is_paint) { | if (obedit == NULL && is_paint) { | ||||
| /* Manipulators aren't used in paint modes */ | /* Manipulators aren't used in paint modes */ | ||||
| Show All 32 Lines | |||||