Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_undo.c
| Show First 20 Lines • Show All 741 Lines • ▼ Show 20 Lines | static bool image_undosys_poll(bContext *C) | ||||
| else { | else { | ||||
| if (obact && (obact->mode & OB_MODE_TEXTURE_PAINT)) { | if (obact && (obact->mode & OB_MODE_TEXTURE_PAINT)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static void image_undosys_step_encode_init(struct bContext *UNUSED(C), UndoStep *us_p) | static void image_undosys_step_encode_init(const struct bContext *UNUSED(C), UndoStep *us_p) | ||||
| { | { | ||||
| ImageUndoStep *us = (ImageUndoStep *)us_p; | ImageUndoStep *us = (ImageUndoStep *)us_p; | ||||
| /* dummy, memory is cleared anyway. */ | /* dummy, memory is cleared anyway. */ | ||||
| us->is_encode_init = true; | us->is_encode_init = true; | ||||
| BLI_listbase_clear(&us->handles); | BLI_listbase_clear(&us->handles); | ||||
| BLI_listbase_clear(&us->paint_tiles); | BLI_listbase_clear(&us->paint_tiles); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines | |||||