Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_ID.h
| Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | |||||
| }; | }; | ||||
| /* IDOverridePropertyOperation->flag. */ | /* IDOverridePropertyOperation->flag. */ | ||||
| enum { | enum { | ||||
| /** User cannot remove that override operation. */ | /** User cannot remove that override operation. */ | ||||
| IDOVERRIDE_LIBRARY_FLAG_MANDATORY = 1 << 0, | IDOVERRIDE_LIBRARY_FLAG_MANDATORY = 1 << 0, | ||||
| /** User cannot change that override operation. */ | /** User cannot change that override operation. */ | ||||
| IDOVERRIDE_LIBRARY_FLAG_LOCKED = 1 << 1, | IDOVERRIDE_LIBRARY_FLAG_LOCKED = 1 << 1, | ||||
| /** For overrides of ID pointers: this override still matches (follows) the hierarchy of the | |||||
| * reference linked data. */ | |||||
| IDOVERRIDE_LIBRARY_FLAG_IDPOINTER_MATCH_REFERENCE = 1 << 8, | |||||
| }; | }; | ||||
| /** A single overridden property, contain all operations on this one. */ | /** A single overridden property, contain all operations on this one. */ | ||||
| typedef struct IDOverrideLibraryProperty { | typedef struct IDOverrideLibraryProperty { | ||||
| struct IDOverrideLibraryProperty *next, *prev; | struct IDOverrideLibraryProperty *next, *prev; | ||||
| /** | /** | ||||
| * Path from ID to overridden property. | * Path from ID to overridden property. | ||||
| ▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | typedef struct IDOverrideLibrary { | ||||
| IDOverrideLibraryRuntime *runtime; | IDOverrideLibraryRuntime *runtime; | ||||
| } IDOverrideLibrary; | } IDOverrideLibrary; | ||||
| /* watch it: Sequence has identical beginning. */ | /* watch it: Sequence has identical beginning. */ | ||||
| /** | /** | ||||
| * ID is the first thing included in all serializable types. It | * ID is the first thing included in all serializable types. It | ||||
| * provides a common handle to place all data in double-linked lists. | * provides a common handle to place all data in double-linked lists. | ||||
| * */ | */ | ||||
| /* 2 characters for ID code and 64 for actual name */ | /* 2 characters for ID code and 64 for actual name */ | ||||
| #define MAX_ID_NAME 66 | #define MAX_ID_NAME 66 | ||||
| /* There's a nasty circular dependency here.... 'void *' to the rescue! I | /* There's a nasty circular dependency here.... 'void *' to the rescue! I | ||||
| * really wonder why this is needed. */ | * really wonder why this is needed. */ | ||||
| typedef struct ID { | typedef struct ID { | ||||
| void *next, *prev; | void *next, *prev; | ||||
| ▲ Show 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | typedef enum ID_Type { | ||||
| ID_IP = MAKE_ID2('I', 'P'), /* Ipo (depreciated, replaced by FCurves) */ | ID_IP = MAKE_ID2('I', 'P'), /* Ipo (depreciated, replaced by FCurves) */ | ||||
| ID_KE = MAKE_ID2('K', 'E'), /* Key (shape key) */ | ID_KE = MAKE_ID2('K', 'E'), /* Key (shape key) */ | ||||
| ID_WO = MAKE_ID2('W', 'O'), /* World */ | ID_WO = MAKE_ID2('W', 'O'), /* World */ | ||||
| ID_SCR = MAKE_ID2('S', 'R'), /* Screen */ | ID_SCR = MAKE_ID2('S', 'R'), /* Screen */ | ||||
| ID_VF = MAKE_ID2('V', 'F'), /* VFont (Vector Font) */ | ID_VF = MAKE_ID2('V', 'F'), /* VFont (Vector Font) */ | ||||
| ID_TXT = MAKE_ID2('T', 'X'), /* Text */ | ID_TXT = MAKE_ID2('T', 'X'), /* Text */ | ||||
| ID_SPK = MAKE_ID2('S', 'K'), /* Speaker */ | ID_SPK = MAKE_ID2('S', 'K'), /* Speaker */ | ||||
| ID_SO = MAKE_ID2('S', 'O'), /* Sound */ | ID_SO = MAKE_ID2('S', 'O'), /* Sound */ | ||||
| ID_GR = MAKE_ID2('G', 'R'), /* Group */ | ID_GR = MAKE_ID2('G', 'R'), /* Collection */ | ||||
| ID_AR = MAKE_ID2('A', 'R'), /* bArmature */ | ID_AR = MAKE_ID2('A', 'R'), /* bArmature */ | ||||
| ID_AC = MAKE_ID2('A', 'C'), /* bAction */ | ID_AC = MAKE_ID2('A', 'C'), /* bAction */ | ||||
| ID_NT = MAKE_ID2('N', 'T'), /* bNodeTree */ | ID_NT = MAKE_ID2('N', 'T'), /* bNodeTree */ | ||||
| ID_BR = MAKE_ID2('B', 'R'), /* Brush */ | ID_BR = MAKE_ID2('B', 'R'), /* Brush */ | ||||
| ID_PA = MAKE_ID2('P', 'A'), /* ParticleSettings */ | ID_PA = MAKE_ID2('P', 'A'), /* ParticleSettings */ | ||||
| ID_GD = MAKE_ID2('G', 'D'), /* bGPdata, (Grease Pencil) */ | ID_GD = MAKE_ID2('G', 'D'), /* bGPdata, (Grease Pencil) */ | ||||
| ID_WM = MAKE_ID2('W', 'M'), /* WindowManager */ | ID_WM = MAKE_ID2('W', 'M'), /* WindowManager */ | ||||
| ID_MC = MAKE_ID2('M', 'C'), /* MovieClip */ | ID_MC = MAKE_ID2('M', 'C'), /* MovieClip */ | ||||
| ID_MSK = MAKE_ID2('M', 'S'), /* Mask */ | ID_MSK = MAKE_ID2('M', 'S'), /* Mask */ | ||||
| ID_LS = MAKE_ID2('L', 'S'), /* FreestyleLineStyle */ | ID_LS = MAKE_ID2('L', 'S'), /* FreestyleLineStyle */ | ||||
| ID_PAL = MAKE_ID2('P', 'L'), /* Palette */ | ID_PAL = MAKE_ID2('P', 'L'), /* Palette */ | ||||
| ID_PC = MAKE_ID2('P', 'C'), /* PaintCurve */ | ID_PC = MAKE_ID2('P', 'C'), /* PaintCurve */ | ||||
| ID_CF = MAKE_ID2('C', 'F'), /* CacheFile */ | ID_CF = MAKE_ID2('C', 'F'), /* CacheFile */ | ||||
| ID_WS = MAKE_ID2('W', 'S'), /* WorkSpace */ | ID_WS = MAKE_ID2('W', 'S'), /* WorkSpace */ | ||||
| ID_LP = MAKE_ID2('L', 'P'), /* LightProbe */ | ID_LP = MAKE_ID2('L', 'P'), /* LightProbe */ | ||||
| ID_HA = MAKE_ID2('H', 'A'), /* Hair */ | ID_HA = MAKE_ID2('H', 'A'), /* Hair */ | ||||
| ID_PT = MAKE_ID2('P', 'T'), /* PointCloud */ | ID_PT = MAKE_ID2('P', 'T'), /* PointCloud */ | ||||
| ID_VO = MAKE_ID2('V', 'O'), /* Volume */ | ID_VO = MAKE_ID2('V', 'O'), /* Volume */ | ||||
| ID_SIM = MAKE_ID2('S', 'I'), /* Simulation (currently unused) */ | ID_SIM = MAKE_ID2('S', 'I'), /* Simulation (geometry node groups) */ | ||||
| } ID_Type; | } ID_Type; | ||||
| /* Only used as 'placeholder' in .blend files for directly linked data-blocks. */ | /* Only used as 'placeholder' in .blend files for directly linked data-blocks. */ | ||||
| #define ID_LINK_PLACEHOLDER MAKE_ID2('I', 'D') /* (internal use only) */ | #define ID_LINK_PLACEHOLDER MAKE_ID2('I', 'D') /* (internal use only) */ | ||||
| /* Deprecated. */ | /* Deprecated. */ | ||||
| #define ID_SCRN MAKE_ID2('S', 'N') | #define ID_SCRN MAKE_ID2('S', 'N') | ||||
| ▲ Show 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | typedef enum IDRecalcFlag { | ||||
| * changed, and the shader is to be recompiled. | * changed, and the shader is to be recompiled. | ||||
| * For objects it means that the draw batch cache is to be redone. */ | * For objects it means that the draw batch cache is to be redone. */ | ||||
| ID_RECALC_SHADING = (1 << 7), | ID_RECALC_SHADING = (1 << 7), | ||||
| /* TODO(sergey): Consider adding an explicit ID_RECALC_SHADING_PARAMATERS | /* TODO(sergey): Consider adding an explicit ID_RECALC_SHADING_PARAMATERS | ||||
| * which can be used for cases when only socket value changed, to speed up | * which can be used for cases when only socket value changed, to speed up | ||||
| * redraw update in that case. */ | * redraw update in that case. */ | ||||
| /* Selection of the ID itself or its components (for example, vertices) did | /* Selection of the ID itself or its components (for example, vertices) did | ||||
| * change, and all the drawing data is to eb updated. */ | * change, and all the drawing data is to be updated. */ | ||||
| ID_RECALC_SELECT = (1 << 9), | ID_RECALC_SELECT = (1 << 9), | ||||
| /* Flags on the base did change, and is to be copied onto all the copies of | /* Flags on the base did change, and is to be copied onto all the copies of | ||||
| * corresponding objects. */ | * corresponding objects. */ | ||||
| ID_RECALC_BASE_FLAGS = (1 << 10), | ID_RECALC_BASE_FLAGS = (1 << 10), | ||||
| ID_RECALC_POINT_CACHE = (1 << 11), | ID_RECALC_POINT_CACHE = (1 << 11), | ||||
| /* Only inform editors about the change. Is used to force update of editors | /* Only inform editors about the change. Is used to force update of editors | ||||
| * when data-block which is not a part of dependency graph did change. | * when data-block which is not a part of dependency graph did change. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines | |||||