From 1323315937a22c7847d420a4058580e0395598f5 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 27 Jun 2003 15:29:36 +0000 Subject: [PATCH] - associated .h file change for previous commit (bug #152). plus added a warning in screen_types.h. Some wierd person thinks ENUM is nice? It's dangerous! ;-) --- source/blender/makesdna/DNA_screen_types.h | 2 ++ source/blender/makesdna/DNA_space_types.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index 2eb315e9f98..f5ab3fb49fe 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -128,6 +128,8 @@ typedef struct ScrArea { #define B_SCROLL 8 #define HOR_SCROLL 12 +/* dunno who thought this below is nice code, but be warned, the values are written in + a file, and cannot be switched or altered. enum here is out of focus (ton) */ enum { SPACE_EMPTY, SPACE_VIEW3D, diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 65a1de9198e..59fa9e07604 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -197,7 +197,7 @@ typedef struct SpaceImage { typedef struct SpaceNla{ struct SpaceLink *next, *prev; int spacetype; - int lock; + short menunr, lock; struct ScrArea *area; View2D v2d;