Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_ID.h
| Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Lines | typedef struct ID { | ||||
| /** | /** | ||||
| * LIB_TAG_... tags (runtime only, cleared at read time). | * LIB_TAG_... tags (runtime only, cleared at read time). | ||||
| */ | */ | ||||
| int tag; | int tag; | ||||
| int us; | int us; | ||||
| int icon_id; | int icon_id; | ||||
| int recalc; | int recalc; | ||||
| /** | /** | ||||
| * Used by undo code. Value of recalc is stored there when reading an ID from memfile, and not | * Used by undo code. recalc_after_undo_push contains the changes between the | ||||
| * touched by anything, which means it can be used as 'reference' recalc value for the next undo | * last undo push and the current state. This is accumulated as IDs are tagged | ||||
| * step, when going backward (i.e. actual undo, redo can just use recalc value directly). | * for update in the depsgraph, and only cleared on undo push. | ||||
| * | |||||
| * recalc_up_to_undo_push is saved to undo memory, and is the value of | |||||
| * recalc_after_undo_push at the time of the undo push. This means it can be | |||||
| * used to find the changes between undo states. | |||||
| */ | */ | ||||
| int recalc_undo_accumulated; | int recalc_up_to_undo_push; | ||||
| int recalc_after_undo_push; | |||||
| /** | /** | ||||
| * A session-wide unique identifier for a given ID, that remain the same across potential | * A session-wide unique identifier for a given ID, that remain the same across potential | ||||
| * re-allocations (e.g. due to undo/redo steps). | * re-allocations (e.g. due to undo/redo steps). | ||||
| */ | */ | ||||
| unsigned int session_uuid; | unsigned int session_uuid; | ||||
| char _pad[4]; | |||||
| IDProperty *properties; | IDProperty *properties; | ||||
| /** Reference linked ID which this one overrides. */ | /** Reference linked ID which this one overrides. */ | ||||
| IDOverrideLibrary *override_library; | IDOverrideLibrary *override_library; | ||||
| /** | /** | ||||
| * Only set for data-blocks which are coming from copy-on-write, points to | * Only set for data-blocks which are coming from copy-on-write, points to | ||||
| * the original version of it. | * the original version of it. | ||||
| ▲ Show 20 Lines • Show All 499 Lines • Show Last 20 Lines | |||||