Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_view3d_types.h
| Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | |||||
| /** 3D Viewport Overlay settings. */ | /** 3D Viewport Overlay settings. */ | ||||
| typedef struct View3DOverlay { | typedef struct View3DOverlay { | ||||
| int flag; | int flag; | ||||
| /** Edit mode settings. */ | /** Edit mode settings. */ | ||||
| int edit_flag; | int edit_flag; | ||||
| float normals_length; | float normals_length; | ||||
| float normals_constant_screen_size; | |||||
| float backwire_opacity; | float backwire_opacity; | ||||
| /** Paint mode settings. */ | /** Paint mode settings. */ | ||||
| int paint_flag; | int paint_flag; | ||||
| /** Weight paint mode settings. */ | /** Weight paint mode settings. */ | ||||
| int wpaint_flag; | int wpaint_flag; | ||||
| Show All 18 Lines | typedef struct View3DOverlay { | ||||
| float gpencil_paper_opacity; | float gpencil_paper_opacity; | ||||
| float gpencil_grid_opacity; | float gpencil_grid_opacity; | ||||
| float gpencil_fade_layer; | float gpencil_fade_layer; | ||||
| /** Factor for mixing vertex paint with original color */ | /** Factor for mixing vertex paint with original color */ | ||||
| float gpencil_vertex_paint_opacity; | float gpencil_vertex_paint_opacity; | ||||
| /** Handles display type for curves. */ | /** Handles display type for curves. */ | ||||
| int handle_display; | int handle_display; | ||||
| char _pad[4]; | |||||
| } View3DOverlay; | } View3DOverlay; | ||||
| /* View3DOverlay->handle_display */ | /* View3DOverlay->handle_display */ | ||||
| typedef enum eHandleDisplay { | typedef enum eHandleDisplay { | ||||
| /* Display only selected points. */ | /* Display only selected points. */ | ||||
| CURVE_HANDLE_SELECTED = 0, | CURVE_HANDLE_SELECTED = 0, | ||||
| /* Display all handles. */ | /* Display all handles. */ | ||||
| CURVE_HANDLE_ALL = 1, | CURVE_HANDLE_ALL = 1, | ||||
| ▲ Show 20 Lines • Show All 297 Lines • ▼ Show 20 Lines | enum { | ||||
| V3D_OVERLAY_EDIT_FACE_ANG = (1 << 17), | V3D_OVERLAY_EDIT_FACE_ANG = (1 << 17), | ||||
| V3D_OVERLAY_EDIT_FACE_AREA = (1 << 18), | V3D_OVERLAY_EDIT_FACE_AREA = (1 << 18), | ||||
| V3D_OVERLAY_EDIT_INDICES = (1 << 19), | V3D_OVERLAY_EDIT_INDICES = (1 << 19), | ||||
| /* Deprecated. */ | /* Deprecated. */ | ||||
| // V3D_OVERLAY_EDIT_CU_HANDLES = (1 << 20), | // V3D_OVERLAY_EDIT_CU_HANDLES = (1 << 20), | ||||
| V3D_OVERLAY_EDIT_CU_NORMALS = (1 << 21), | V3D_OVERLAY_EDIT_CU_NORMALS = (1 << 21), | ||||
| V3D_OVERLAY_EDIT_CONSTANT_SCREEN_SIZE_NORMALS = (1 << 22), | |||||
| }; | }; | ||||
fclem: Rename to `V3D_OVERLAY_EDIT_CONSTANT_SCREEN_SIZE_NORMALS`.
Even if it's longer, it is better… | |||||
| /** #View3DOverlay.paint_flag */ | /** #View3DOverlay.paint_flag */ | ||||
| enum { | enum { | ||||
| V3D_OVERLAY_PAINT_WIRE = (1 << 0), | V3D_OVERLAY_PAINT_WIRE = (1 << 0), | ||||
| }; | }; | ||||
| /** #View3DOverlay.wpaint_flag */ | /** #View3DOverlay.wpaint_flag */ | ||||
| enum { | enum { | ||||
| V3D_OVERLAY_WPAINT_CONTOURS = (1 << 0), | V3D_OVERLAY_WPAINT_CONTOURS = (1 << 0), | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||
Rename to V3D_OVERLAY_EDIT_CONSTANT_SCREEN_SIZE_NORMALS.
Even if it's longer, it is better than using acronyms that are not widely used throughout the codebase.