Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/undo_system.c
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| * \{ */ | * \{ */ | ||||
| const UndoType *BKE_UNDOSYS_TYPE_IMAGE = NULL; | const UndoType *BKE_UNDOSYS_TYPE_IMAGE = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_MEMFILE = NULL; | const UndoType *BKE_UNDOSYS_TYPE_MEMFILE = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_PAINTCURVE = NULL; | const UndoType *BKE_UNDOSYS_TYPE_PAINTCURVE = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_PARTICLE = NULL; | const UndoType *BKE_UNDOSYS_TYPE_PARTICLE = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_SCULPT = NULL; | const UndoType *BKE_UNDOSYS_TYPE_SCULPT = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_TEXT = NULL; | const UndoType *BKE_UNDOSYS_TYPE_TEXT = NULL; | ||||
| const UndoType *BKE_UNDOSYS_TYPE_GPENCIL = NULL; | |||||
| static ListBase g_undo_types = {NULL, NULL}; | static ListBase g_undo_types = {NULL, NULL}; | ||||
| static const UndoType *BKE_undosys_type_from_context(bContext *C) | static const UndoType *BKE_undosys_type_from_context(bContext *C) | ||||
| { | { | ||||
| LISTBASE_FOREACH (const UndoType *, ut, &g_undo_types) { | LISTBASE_FOREACH (const UndoType *, ut, &g_undo_types) { | ||||
| /* No poll means we don't check context. */ | /* No poll means we don't check context. */ | ||||
| if (ut->poll && ut->poll(C)) { | if (ut->poll && ut->poll(C)) { | ||||
| ▲ Show 20 Lines • Show All 908 Lines • Show Last 20 Lines | |||||