Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-01-05 19:32:46 +0300
committerBastien Montagne <bastien@blender.org>2021-01-05 20:21:09 +0300
commit90a26f900c18f12e5d41590fb9ce1ea4933c4989 (patch)
treedd98af18dfd2be7d469524f978154734762c129f
parent166c0db3f9412925b501b7172875cb8ee2eb6958 (diff)
Cleanup: UndoType: use `size_t` for memory size of structs.
-rw-r--r--source/blender/blenkernel/BKE_undo_system.h5
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). */