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:
authorCampbell Barton <campbell@blender.org>2022-10-03 02:50:20 +0300
committerCampbell Barton <campbell@blender.org>2022-10-03 03:07:17 +0300
commitd3ba8826b0e96c8c5293ba4a2c5d1bd42a8c6ccb (patch)
tree5e5b93716f2d417dc5854a59b8abcdb7a3f6ea61 /source/blender/makesdna/DNA_layer_types.h
parentea2c41c7306fa9d1af0d8aa3d675b45d38a2e806 (diff)
Cleanup: remove 2D region-relative coordinates from Base
Historically, caching these values may have had some advantages, simplifying drawing object centers and selecting by object center. Now the only uses of these values would calculate the projection before use, so there is no reason to store run-time projection in DNA. This also quiets a `-Wstring-overflow` warning.
Diffstat (limited to 'source/blender/makesdna/DNA_layer_types.h')
-rw-r--r--source/blender/makesdna/DNA_layer_types.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_layer_types.h b/source/blender/makesdna/DNA_layer_types.h
index e011e1c491e..63bc379c27a 100644
--- a/source/blender/makesdna/DNA_layer_types.h
+++ b/source/blender/makesdna/DNA_layer_types.h
@@ -80,8 +80,7 @@ typedef struct Base {
short flag;
unsigned short local_view_bits;
- short sx, sy;
- char _pad1[6];
+ char _pad1[10];
struct Object *object;
unsigned int lay DNA_DEPRECATED;
int flag_legacy;