Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-24 15:19:23 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-24 15:19:23 +0300
commit3f1f2b30354a28f4a6a002586b745b3bd34fb66f (patch)
treed1a833f98f508b311a3ba286aa75097616499d5f /source/blender/editors/space_view3d/view3d_header.c
parent1b12c2d423f3b7265455e42dc5f5c5e20c56624d (diff)
Cleanup: removed unused 3D view header template.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_header.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_header.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/source/blender/editors/space_view3d/view3d_header.c b/source/blender/editors/space_view3d/view3d_header.c
index 8f9fb83f785..f54548cee37 100644
--- a/source/blender/editors/space_view3d/view3d_header.c
+++ b/source/blender/editors/space_view3d/view3d_header.c
@@ -175,7 +175,6 @@ static void uiTemplatePaintModeSelection(uiLayout *layout, struct bContext *C)
void uiTemplateHeader3D_mode(uiLayout *layout, struct bContext *C)
{
- /* Extracted from: uiTemplateHeader3D */
ViewLayer *view_layer = CTX_data_view_layer(C);
Object *ob = OBACT(view_layer);
Object *obedit = CTX_data_edit_object(C);
@@ -191,68 +190,3 @@ void uiTemplateHeader3D_mode(uiLayout *layout, struct bContext *C)
uiTemplatePaintModeSelection(layout, C);
}
}
-
-void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
-{
- bScreen *screen = CTX_wm_screen(C);
- ScrArea *sa = CTX_wm_area(C);
- View3D *v3d = sa->spacedata.first;
- Scene *scene = CTX_data_scene(C);
- ViewLayer *view_layer = CTX_data_view_layer(C);
- ToolSettings *ts = CTX_data_tool_settings(C);
- PointerRNA v3dptr, toolsptr, sceneptr;
- Object *ob = OBACT(view_layer);
- Object *obedit = CTX_data_edit_object(C);
- bGPdata *gpd = CTX_data_gpencil_data(C);
- uiBlock *block;
- bool is_paint = (
- ob && !(gpd && (gpd->flag & GP_DATA_STROKE_EDITMODE)) &&
- ELEM(ob->mode,
- OB_MODE_SCULPT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OB_MODE_TEXTURE_PAINT));
-
- RNA_pointer_create(&screen->id, &RNA_SpaceView3D, v3d, &v3dptr);
- RNA_pointer_create(&scene->id, &RNA_ToolSettings, ts, &toolsptr);
- RNA_pointer_create(&scene->id, &RNA_Scene, scene, &sceneptr);
-
- block = uiLayoutGetBlock(layout);
- UI_block_func_handle_set(block, do_view3d_header_buttons, NULL);
-
- /* other buttons: */
- UI_block_emboss_set(block, UI_EMBOSS);
-
- /* moved to topbar */
-#if 0
- uiLayout *row = uiLayoutRow(layout, true);
- 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)) {
- uiItemR(row, &v3dptr, "use_pivot_point_align", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
- }
-#endif
-
- if (obedit == NULL && is_paint) {
- /* Currently Python calls this directly. */
-#if 0
- uiTemplatePaintModeSelection(layout, C);
-#endif
-
- }
- else {
- /* Moved to popover and topbar. */
-#if 0
- /* Transform widget / gizmos */
- row = uiLayoutRow(layout, true);
- uiItemR(row, &v3dptr, "show_gizmo", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
- uiItemR(row, &sceneptr, "transform_orientation", 0, "", ICON_NONE);
-#endif
- }
-
- if (obedit == NULL && v3d->localvd == NULL) {
- /* Scene lock */
- uiItemR(layout, &v3dptr, "lock_camera_and_layers", UI_ITEM_R_ICON_ONLY, "", ICON_NONE);
- }
-
- /* Currently Python calls this directly. */
-#if 0
- uiTemplateEditModeSelection(layout, C);
-#endif
-}