Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_ID.h
| Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | typedef struct IDOverrideLibraryPropertyOperation { | ||||
| short operation; | short operation; | ||||
| short flag; | short flag; | ||||
| /** Runtime, tags are common to both IDOverrideProperty and IDOverridePropertyOperation. */ | /** Runtime, tags are common to both IDOverrideProperty and IDOverridePropertyOperation. */ | ||||
| short tag; | short tag; | ||||
| char _pad0[2]; | char _pad0[2]; | ||||
| /* Sub-item references, if needed (for arrays or collections only). | /* Sub-item references, if needed (for arrays or collections only). | ||||
| * We need both reference and local values to allow e.g. insertion into collections | * We need both reference and local values to allow e.g. insertion into RNA collections | ||||
| * (constraints, modifiers...). | * (constraints, modifiers...). | ||||
| * In collection case, if names are defined, they are used in priority. | * In RNA collection case, if names are defined, they are used in priority. | ||||
| * Names are pointers (instead of char[64]) to save some space, NULL when unset. | * Names are pointers (instead of char[64]) to save some space, NULL or empty string when unset. | ||||
| * Indices are -1 when unset. */ | * Indices are -1 when unset. | ||||
| * | |||||
| * NOTE: For insertion operations in RNA collections, reference may not actually exist in the | |||||
| * linked reference data. It is used to identify the anchor of the insertion operation (i.e. the | |||||
| * item after or before which the new local item should be inserted), in the local override. */ | |||||
| char *subitem_reference_name; | char *subitem_reference_name; | ||||
| char *subitem_local_name; | char *subitem_local_name; | ||||
| int subitem_reference_index; | int subitem_reference_index; | ||||
| int subitem_local_index; | int subitem_local_index; | ||||
| } IDOverrideLibraryPropertyOperation; | } IDOverrideLibraryPropertyOperation; | ||||
| /* IDOverrideLibraryPropertyOperation->operation. */ | /* IDOverrideLibraryPropertyOperation->operation. */ | ||||
| enum { | enum { | ||||
| ▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Lines | typedef struct LibraryWeakReference { | ||||
| char _pad[2]; | char _pad[2]; | ||||
| } LibraryWeakReference; | } LibraryWeakReference; | ||||
| /* for PreviewImage->flag */ | /* for PreviewImage->flag */ | ||||
| enum ePreviewImage_Flag { | enum ePreviewImage_Flag { | ||||
| PRV_CHANGED = (1 << 0), | PRV_CHANGED = (1 << 0), | ||||
| PRV_USER_EDITED = (1 << 1), /* if user-edited, do not auto-update this anymore! */ | PRV_USER_EDITED = (1 << 1), /* if user-edited, do not auto-update this anymore! */ | ||||
| PRV_UNFINISHED = (1 << 2), /* The preview is not done rendering yet. */ | PRV_RENDERING = (1 << 2), /* Rendering was invoked. Cleared on file read. */ | ||||
| }; | }; | ||||
| /* for PreviewImage->tag */ | /* for PreviewImage->tag */ | ||||
| enum { | enum { | ||||
| PRV_TAG_DEFFERED = (1 << 0), /* Actual loading of preview is deferred. */ | PRV_TAG_DEFFERED = (1 << 0), /* Actual loading of preview is deferred. */ | ||||
| PRV_TAG_DEFFERED_RENDERING = (1 << 1), /* Deferred preview is being loaded. */ | PRV_TAG_DEFFERED_RENDERING = (1 << 1), /* Deferred preview is being loaded. */ | ||||
| PRV_TAG_DEFFERED_DELETE = (1 << 2), /* Deferred preview should be deleted asap. */ | PRV_TAG_DEFFERED_DELETE = (1 << 2), /* Deferred preview should be deleted asap. */ | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 518 Lines • Show Last 20 Lines | |||||