diff options
author | Bastien Montagne <bastien@blender.org> | 2021-01-05 19:32:46 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-01-05 20:21:09 +0300 |
commit | 90a26f900c18f12e5d41590fb9ce1ea4933c4989 (patch) | |
tree | dd98af18dfd2be7d469524f978154734762c129f /source/blender/blenkernel/BKE_undo_system.h | |
parent | 166c0db3f9412925b501b7172875cb8ee2eb6958 (diff) |
Cleanup: UndoType: use `size_t` for memory size of structs.
Diffstat (limited to 'source/blender/blenkernel/BKE_undo_system.h')
-rw-r--r-- | source/blender/blenkernel/BKE_undo_system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_undo_system.h b/source/blender/blenkernel/BKE_undo_system.h index b13a0580a55..fff6c73fafa 100644 --- a/source/blender/blenkernel/BKE_undo_system.h +++ b/source/blender/blenkernel/BKE_undo_system.h @@ -142,7 +142,10 @@ typedef struct UndoType { bool use_context; - int step_size; + /** + * The size of the undo struct 'inherited' from #UndoStep for that specific type. Used for + * generic allocation in BKE's `undo_system.c`. */ + size_t step_size; } UndoType; /* Expose since we need to perform operations on specific undo types (rarely). */ |