Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_space_types.h
| Show First 20 Lines • Show All 1,503 Lines • ▼ Show 20 Lines | typedef struct bNodeTreePath { | ||||
| /** V2d center point, so node trees can have different offsets in editors. */ | /** V2d center point, so node trees can have different offsets in editors. */ | ||||
| float view_center[2]; | float view_center[2]; | ||||
| /** MAX_NAME. */ | /** MAX_NAME. */ | ||||
| char node_name[64]; | char node_name[64]; | ||||
| char display_name[64]; | char display_name[64]; | ||||
| } bNodeTreePath; | } bNodeTreePath; | ||||
| typedef struct SpaceNodeOverlay { | |||||
| int flag; | |||||
| } SpaceNodeOverlay; | |||||
HooglyBoogly: Since conceptually, this padding is necessary for `SpaceNode`, not really this struct by itself… | |||||
| typedef enum eSpaceNodeOverlay_Flag { | |||||
| SN_OVERLAY_SHOW_OVERLAYS = (1 << 1), | |||||
| SN_OVERLAY_SHOW_WIRE_COLORS = (1 << 2), | |||||
| } eSpaceNodeOverlay_Flag; | |||||
| typedef struct SpaceNode { | typedef struct SpaceNode { | ||||
| SpaceLink *next, *prev; | SpaceLink *next, *prev; | ||||
| /** Storage of regions for inactive spaces. */ | /** Storage of regions for inactive spaces. */ | ||||
| ListBase regionbase; | ListBase regionbase; | ||||
| char spacetype; | char spacetype; | ||||
| char link_flag; | char link_flag; | ||||
| char _pad0[6]; | char _pad0[6]; | ||||
| /* End 'SpaceLink' header. */ | /* End 'SpaceLink' header. */ | ||||
| Show All 37 Lines | typedef struct SpaceNode { | ||||
| /** Texfrom object, world or brush. */ | /** Texfrom object, world or brush. */ | ||||
| short texfrom; | short texfrom; | ||||
| /** Shader from object or world. */ | /** Shader from object or world. */ | ||||
| short shaderfrom; | short shaderfrom; | ||||
| /** Grease-pencil data. */ | /** Grease-pencil data. */ | ||||
| struct bGPdata *gpd; | struct bGPdata *gpd; | ||||
| SpaceNodeOverlay overlay; | |||||
| char _pad2[4]; | |||||
| SpaceNode_Runtime *runtime; | SpaceNode_Runtime *runtime; | ||||
| } SpaceNode; | } SpaceNode; | ||||
| /* SpaceNode.flag */ | /* SpaceNode.flag */ | ||||
| typedef enum eSpaceNode_Flag { | typedef enum eSpaceNode_Flag { | ||||
| SNODE_BACKDRAW = (1 << 1), | SNODE_BACKDRAW = (1 << 1), | ||||
| SNODE_SHOW_GPENCIL = (1 << 2), | SNODE_SHOW_GPENCIL = (1 << 2), | ||||
| SNODE_USE_ALPHA = (1 << 3), | SNODE_USE_ALPHA = (1 << 3), | ||||
| ▲ Show 20 Lines • Show All 487 Lines • Show Last 20 Lines | |||||
Since conceptually, this padding is necessary for SpaceNode, not really this struct by itself, I think it would be better to add it below.