Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_defaults.h
| Show All 30 Lines | #define _DNA_DEFAULT_View3DShading \ | ||||
| .single_color = {0.8f, 0.8f, 0.8f}, \ | .single_color = {0.8f, 0.8f, 0.8f}, \ | ||||
| .background_color = {0.05f, 0.05f, 0.05f}, \ | .background_color = {0.05f, 0.05f, 0.05f}, \ | ||||
| .studiolight_intensity = 1.0f, \ | .studiolight_intensity = 1.0f, \ | ||||
| .render_pass = SCE_PASS_COMBINED, \ | .render_pass = SCE_PASS_COMBINED, \ | ||||
| } | } | ||||
| #define _DNA_DEFAULT_View3DOverlay \ | #define _DNA_DEFAULT_View3DOverlay \ | ||||
| { \ | { \ | ||||
| .flag = V3D_OVERLAY_VIEWER_ATTRIBUTE, \ | |||||
| .wireframe_threshold = 1.0f, \ | .wireframe_threshold = 1.0f, \ | ||||
| .wireframe_opacity = 1.0f, \ | .wireframe_opacity = 1.0f, \ | ||||
| .viewer_attribute_opacity = 0.8f, \ | |||||
HooglyBoogly: Do we really want a default of 1.0? What about 0.8? | |||||
| .xray_alpha_bone = 0.5f, \ | .xray_alpha_bone = 0.5f, \ | ||||
| .bone_wire_alpha = 1.0f, \ | .bone_wire_alpha = 1.0f, \ | ||||
| .fade_alpha = 0.40f, \ | .fade_alpha = 0.40f, \ | ||||
| .texture_paint_mode_opacity = 1.0f, \ | .texture_paint_mode_opacity = 1.0f, \ | ||||
| .weight_paint_mode_opacity = 1.0f, \ | .weight_paint_mode_opacity = 1.0f, \ | ||||
| .vertex_paint_mode_opacity = 1.0f, \ | .vertex_paint_mode_opacity = 1.0f, \ | ||||
| /* Intentionally different to vertex/paint mode, \ | /* Intentionally different to vertex/paint mode, \ | ||||
| * we typically want to see shading too. */ \ | * we typically want to see shading too. */ \ | ||||
| Show All 27 Lines | #define _DNA_DEFAULT_View3D \ | ||||
| .gridlines = 16, \ | .gridlines = 16, \ | ||||
| .gridsubdiv = 10, \ | .gridsubdiv = 10, \ | ||||
| .shading = _DNA_DEFAULT_View3DShading, \ | .shading = _DNA_DEFAULT_View3DShading, \ | ||||
| .overlay = _DNA_DEFAULT_View3DOverlay, \ | .overlay = _DNA_DEFAULT_View3DOverlay, \ | ||||
| \ | \ | ||||
| .gridflag = V3D_SHOW_X | V3D_SHOW_Y | V3D_SHOW_FLOOR | V3D_SHOW_ORTHO_GRID, \ | .gridflag = V3D_SHOW_X | V3D_SHOW_Y | V3D_SHOW_FLOOR | V3D_SHOW_ORTHO_GRID, \ | ||||
| \ | \ | ||||
| .flag = V3D_SELECT_OUTLINE, \ | .flag = V3D_SELECT_OUTLINE, \ | ||||
| .flag2 = V3D_SHOW_RECONSTRUCTION | V3D_SHOW_ANNOTATION, \ | .flag2 = V3D_SHOW_RECONSTRUCTION | V3D_SHOW_ANNOTATION | V3D_SHOW_VIEWER, \ | ||||
| \ | \ | ||||
| .lens = 50.0f, \ | .lens = 50.0f, \ | ||||
| .clip_start = 0.01f, \ | .clip_start = 0.01f, \ | ||||
| .clip_end = 1000.0f, \ | .clip_end = 1000.0f, \ | ||||
| \ | \ | ||||
| .bundle_size = 0.2f, \ | .bundle_size = 0.2f, \ | ||||
| .bundle_drawtype = OB_PLAINAXES, \ | .bundle_drawtype = OB_PLAINAXES, \ | ||||
| \ | \ | ||||
| Show All 14 Lines | |||||
Do we really want a default of 1.0? What about 0.8?