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:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2009-08-17 21:43:49 +0400
committerAndre Susano Pinto <andresusanopinto@gmail.com>2009-08-17 21:43:49 +0400
commit950b770c1ea0c05a907abc93ad7174a02432843f (patch)
tree12936d6440bc7a0710a2fc776d1e122e000ea71e /source/blender/makesdna/DNA_scene_types.h
parent0e3acbaa386384f1b1d27a2b4e0f0dcd07c0e0e2 (diff)
parent931ffbedaa3e76a6ebec3df2af22176e504158db (diff)
svn merge -r 22371:22571 https://svn.blender.org/svnroot/bf-blender/branches/blender2.5/blender
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h52
1 files changed, 39 insertions, 13 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index a0f59338ac1..6efd47d9348 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -434,8 +434,18 @@ typedef struct TimeMarker {
unsigned int flag;
} TimeMarker;
+typedef struct Paint {
+ /* Array of brushes selected for use in this paint mode */
+ Brush **brushes;
+ int active_brush_index, brush_count;
+
+ /* WM handle */
+ void *paint_cursor;
+} Paint;
+
typedef struct ImagePaintSettings {
- struct Brush *brush;
+ Paint paint;
+
short flag, tool;
/* for projection painting only */
@@ -470,26 +480,23 @@ typedef struct TransformOrientation {
float mat[3][3];
} TransformOrientation;
-struct SculptSession;
-typedef struct Sculpt
-{
- /* Note! a deep copy of this struct must be done header_info.c's copy_scene function */
- /* Data stored only from entering sculptmode until exiting sculptmode */
- struct SculptSession *session;
- struct Brush *brush;
+typedef struct Sculpt {
+ Paint paint;
+
+ /* WM handle */
+ void *cursor;
/* For rotating around a pivot point */
float pivot[3];
int flags;
- /* For the Brush Shape */
- char texsep;
+
/* Control tablet input */
char tablet_size, tablet_strength;
- char pad[5];
+ char pad[6];
} Sculpt;
typedef struct VPaint {
- struct Brush *brush;
+ Paint paint;
float gamma, mul; /* should become part of struct Brush? */
short mode, flag;
@@ -627,6 +634,12 @@ typedef struct bStats {
int totvert, totface;
} bStats;
+typedef struct UnitSettings {
+ /* Display/Editing unit options for each scene */
+ float scale_length; /* maybe have other unit conversions? */
+ short system;
+ short flag; /* imperial, metric etc */
+} UnitSettings;
typedef struct Scene {
ID id;
@@ -647,7 +660,7 @@ typedef struct Scene {
float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
unsigned int lay;
-
+
short flag; /* various settings */
short use_nodes;
@@ -686,6 +699,10 @@ typedef struct Scene {
/* Game Settings */
struct GameFraming framing; // XXX deprecated since 2.5
struct GameData gm;
+
+ /* Units */
+ struct UnitSettings unit;
+
} Scene;
@@ -1088,6 +1105,15 @@ typedef enum SculptFlags {
#define SK_RETARGET_ROLL_VIEW 1
#define SK_RETARGET_ROLL_JOINT 2
+/* UnitSettings */
+
+/* UnitSettings->system */
+#define USER_UNIT_NONE 0
+#define USER_UNIT_METRIC 1
+#define USER_UNIT_IMPERIAL 2
+/* UnitSettings->flag */
+#define USER_UNIT_OPT_SPLIT 1
+
#ifdef __cplusplus
}