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:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-01-17 19:58:05 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-01-17 19:58:05 +0300
commit69e49c6f0c33743d32ba5313e735c1320911c679 (patch)
tree0d011ae7d20e4b7f5fd4702454ed07987bfe96e4 /source/blender/makesdna/DNA_scene_types.h
parent5caec606deea380f7b0dcb22fcb2a1402c1bb60a (diff)
Make sculpt data more like vpaint/weightpaint. SculptData is now in scene->toolsettings, moved the RNA to reflect that too.
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r--source/blender/makesdna/DNA_scene_types.h56
1 files changed, 20 insertions, 36 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h
index 4e9dfada96c..3a40df66585 100644
--- a/source/blender/makesdna/DNA_scene_types.h
+++ b/source/blender/makesdna/DNA_scene_types.h
@@ -375,6 +375,25 @@ 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;
+
+ /* For rotating around a pivot point */
+ float pivot[3];
+ int flags;
+ /* For the Brush Shape */
+ short texact, texnr, spacing;
+ char texrept, texsep, averaging;
+ /* Control tablet input */
+ char tablet_size, tablet_strength;
+ char pad[5];
+} Sculpt;
+
typedef struct VPaint {
float r, g, b, a; /* paint color */
float weight; /* weight paint */
@@ -399,10 +418,10 @@ typedef struct VPaint {
#define VP_ONLYVGROUP 128
-
typedef struct ToolSettings {
VPaint *vpaint; /* vertex paint */
VPaint *wpaint; /* weight paint */
+ Sculpt *sculpt;
/* Subdivide Settings */
short cornertype;
@@ -483,38 +502,6 @@ typedef struct ToolSettings {
char edge_mode;
} ToolSettings;
-struct SculptSession;
-typedef struct SculptData
-{
- /* 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;
-
- /* Pointers to all of sculptmodes's textures */
- struct MTex *mtex[18];
-
- struct Brush *brush;
-
- /* For rotating around a pivot point */
- float pivot[3];
-
- int flags;
-
- /* For the Brush Shape */
- short texact, texnr;
- short spacing;
- char texrept;
- char texsep;
-
- char averaging;
-
- /* Control tablet input */
- char tablet_size, tablet_strength;
-
- char pad[5];
-} SculptData;
-
typedef struct bStats {
/* scene totals for visible layers */
int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
@@ -579,9 +566,6 @@ typedef struct Scene {
short dagisvalid, dagflags;
short pad4, recalc; /* recalc = counterpart of ob->recalc */
- /* Sculptmode data */
- struct SculptData sculptdata;
-
/* frame step. */
int frame_step;
int pad;