4 * ***** BEGIN GPL LICENSE BLOCK *****
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
21 * All rights reserved.
23 * The Original Code is: all of this file.
25 * Contributor(s): none yet.
27 * ***** END GPL LICENSE BLOCK *****
29 #ifndef DNA_SCENE_TYPES_H
30 #define DNA_SCENE_TYPES_H
36 #include "DNA_brush_types.h"
37 #include "DNA_vec_types.h"
38 #include "DNA_listBase.h"
39 #include "DNA_scriptlink_types.h"
53 struct Base *next, *prev;
54 unsigned int lay, selcol;
57 struct Object *object;
60 typedef struct AviCodecData {
61 void *lpFormat; /* save format */
62 void *lpParms; /* compressor options */
63 unsigned int cbFormat; /* size of lpFormat buffer */
64 unsigned int cbParms; /* size of lpParms buffer */
66 unsigned int fccType; /* stream type, for consistency */
67 unsigned int fccHandler; /* compressor */
68 unsigned int dwKeyFrameEvery; /* keyframe rate */
69 unsigned int dwQuality; /* compress quality 0-10,000 */
70 unsigned int dwBytesPerSecond; /* bytes per second */
71 unsigned int dwFlags; /* flags... see below */
72 unsigned int dwInterleaveEvery; /* for non-video streams only */
75 char avicodecname[128];
78 typedef struct QuicktimeCodecData {
80 void *cdParms; /* codec/compressor options */
81 void *pad; /* padding */
83 unsigned int cdSize; /* size of cdParms buffer */
84 unsigned int pad2; /* padding */
86 char qtcodecname[128];
89 typedef struct FFMpegCodecData {
103 IDProperty *properties;
107 typedef struct AudioData {
109 float main; /* Main mix in dB */
114 typedef struct SceneRenderLayer {
115 struct SceneRenderLayer *next, *prev;
119 struct Material *mat_override;
120 struct Group *light_override;
122 unsigned int lay; /* scene->lay itself has priority over this */
123 unsigned int lay_zmask; /* has to be after lay, this is for Z-masking */
128 int passflag; /* pass_xor has to be after passflag */
133 #define SCE_LAY_SOLID 1
134 #define SCE_LAY_ZTRA 2
135 #define SCE_LAY_HALO 4
136 #define SCE_LAY_EDGE 8
137 #define SCE_LAY_SKY 16
138 #define SCE_LAY_STRAND 32
139 /* flags between 32 and 0x8000 are set to 1 already, for future options */
141 #define SCE_LAY_ALL_Z 0x8000
142 #define SCE_LAY_XOR 0x10000
143 #define SCE_LAY_DISABLE 0x20000
144 #define SCE_LAY_ZMASK 0x40000
145 #define SCE_LAY_NEG_ZMASK 0x80000
148 #define SCE_PASS_COMBINED 1
150 #define SCE_PASS_RGBA 4
151 #define SCE_PASS_DIFFUSE 8
152 #define SCE_PASS_SPEC 16
153 #define SCE_PASS_SHADOW 32
154 #define SCE_PASS_AO 64
155 #define SCE_PASS_REFLECT 128
156 #define SCE_PASS_NORMAL 256
157 #define SCE_PASS_VECTOR 512
158 #define SCE_PASS_REFRACT 1024
159 #define SCE_PASS_INDEXOB 2048
160 #define SCE_PASS_UV 4096
161 #define SCE_PASS_RADIO 8192 /* Radio removed, can use for new GI? */
162 #define SCE_PASS_MIST 16384
164 /* note, srl->passflag is treestore element 'nr' in outliner, short still... */
167 typedef struct RenderData {
169 struct AviCodecData *avicodecdata;
170 struct QuicktimeCodecData *qtcodecdata;
171 struct FFMpegCodecData ffcodecdata;
172 struct AudioData audio; /* new in 2.5 */
174 int cfra, sfra, efra; /* frames as in 'images' */
175 int psfra, pefra; /* start+end frames of preview range */
177 int images, framapto;
180 float ctime; /* use for calcutions */
181 float framelen, blurfac;
183 /** For UR edge rendering: give the edges this color */
184 float edgeR, edgeG, edgeB;
186 short fullscreen, xplay, yplay, freqplay; /* standalone player */
187 short depth, attrib, rt1, rt2; /* standalone player */
189 short stereomode; /* standalone player stereo settings */
191 short dimensionspreset; /* for the dimensions presets menu */
193 short filtertype; /* filter is box, tent, gauss, mitch, etc */
195 short size, maximsize; /* size in %, max in Kb */
198 * The desired number of pixels in the x direction
202 * The desired number of pixels in the y direction
206 * The number of part to use in the x direction
210 * The number of part to use in the y direction
214 short winpos, planes, imtype, subimtype;
217 /* 0: Enable backbuffering for images */
221 short rpad, rpad1, rpad2;
224 * Flags for render settings. Use bit-masking to access the settings.
229 * Flags for render settings. Use bit-masking to access the settings.
233 /* render engine, octree resolution */
234 short renderer, ocres;
237 * What to do with the sky/background. Picks sky/premul/key
238 * blending for the background
243 * The number of samples to use per pixel.
247 short frs_sec, edgeint;
249 /* safety, border and display rect */
253 /* information on different layers to be rendered */
258 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
262 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
269 * Value used to define filter size for all filter options */
272 /** post-production settings. Depricated, but here for upwards compat (initialized to 1) */
273 float postmul, postgamma, posthue, postsat;
275 /* Dither noise intensity */
276 float dither_intensity;
278 /* Bake Render options */
279 short bake_osa, bake_filter, bake_mode, bake_flag;
280 short bake_normal_space, bake_quad_split;
281 float bake_maxdist, bake_biasdist, bake_pad;
283 /* yafray: global panel params. TODO: move elsewhere */
284 short GIquality, GIcache, GImethod, GIphotons, GIdirect;
285 short YF_AA, YFexportxml, YF_nobump, YF_clamprgb, yfpad1;
286 int GIdepth, GIcausdepth, GIpixelspersample;
287 int GIphotoncount, GImixphotons;
288 float GIphotonradius;
289 int YF_raydepth, YF_AApasses, YF_AAsamples, yfpad2;
290 float GIshadowquality, GIrefinement, GIpower, GIindirpower;
291 float YF_gamma, YF_exposure, YF_raybias, YF_AApixelsize, YF_AAthreshold;
293 /* paths to backbufffer, output, ftype */
294 char backbuf[160], pic[160];
298 short stamp_font_id, pad3; /* select one of blenders bitmap fonts */
300 /* stamp info user data. */
301 char stamp_udata[160];
303 /* foreground/background color. */
307 /* render simplify */
308 int simplify_subsurf;
309 int simplify_shadowsamples;
310 float simplify_particles;
311 float simplify_aosss;
314 short cineonwhite, cineonblack;
318 short jp2_preset, jp2_depth;
322 short domeres, domemode;
323 short domeangle, dometilt;
326 struct Text *dometext;
330 /* control render convert and shading engine */
331 typedef struct RenderProfile {
332 struct RenderProfile *next, *prev;
337 short shadbufsample_max;
340 float ao_error, pad2;
344 typedef struct GameFraming {
346 char type, pad1, pad2, pad3;
349 #define SCE_GAMEFRAMING_BARS 0
350 #define SCE_GAMEFRAMING_EXTEND 1
351 #define SCE_GAMEFRAMING_SCALE 2
353 typedef struct TimeMarker {
354 struct TimeMarker *next, *prev;
360 typedef struct ImagePaintSettings {
364 /* for projection painting only */
365 short seam_bleed,normal_angle;
367 void *paintcursor; /* wm handle */
368 } ImagePaintSettings;
370 typedef struct ParticleBrushData {
371 short size, strength; /* common settings */
372 short step, invert; /* for specific brushes only */
375 typedef struct ParticleEditSettings {
381 ParticleBrushData brush[7]; /* 7 = PE_TOT_BRUSH */
382 void *paintcursor; /* runtime */
388 } ParticleEditSettings;
390 typedef struct TransformOrientation {
391 struct TransformOrientation *next, *prev;
394 } TransformOrientation;
396 struct SculptSession;
397 typedef struct Sculpt
399 /* Note! a deep copy of this struct must be done header_info.c's copy_scene function */
400 /* Data stored only from entering sculptmode until exiting sculptmode */
401 struct SculptSession *session;
404 /* For rotating around a pivot point */
407 /* For the Brush Shape */
409 /* Control tablet input */
410 char tablet_size, tablet_strength;
414 typedef struct VPaint {
417 float gamma, mul; /* should become part of struct Brush? */
419 int tot; /* allocation size of prev buffers */
420 unsigned int *vpaint_prev; /* previous mesh colors */
421 struct MDeformVert *wpaint_prev; /* previous vertex weights */
423 void *paintcursor; /* wm handle */
427 #define VP_COLINDEX 1
432 #define VP_MIRROR_X 32
434 #define VP_ONLYVGROUP 128
437 typedef struct ToolSettings {
438 VPaint *vpaint; /* vertex paint */
439 VPaint *wpaint; /* weight paint */
445 /* Subdivide Settings */
448 /*Triangle to Quad conversion threshold*/
455 float extr_offs; /* extrude offset */
456 float doublimit; /* remove doubles limit */
457 float normalsize; /* size of normals */
460 /* Selection Mode for Mesh */
463 /* Primitive Settings */
468 /* Cylinder - Tube - Circle */
474 float uvcalc_cubesize;
477 short uvcalc_mapalign;
479 short uv_flag, uv_selectmode;
483 short autoik_chainlen;
485 /* Image Paint (8 byttse aligned please!) */
486 struct ImagePaintSettings imapaint;
488 /* Particle Editing */
489 struct ParticleEditSettings particle;
491 /* Transform Proportional Area of Effect */
492 float proportional_size;
494 /* Select Group Threshold */
500 /* Auto-Keying Mode */
501 short autokey_mode, pad2; /* defines in DNA_userdef_types.h */
505 char retopo_paint_tool;
506 char line_div, ellipse_div, retopo_hotspot;
509 char multires_subdiv_type;
511 /* Skeleton generation */
512 short skgen_resolution;
513 float skgen_threshold_internal;
514 float skgen_threshold_external;
515 float skgen_length_ratio;
516 float skgen_length_limit;
517 float skgen_angle_limit;
518 float skgen_correlation_limit;
519 float skgen_symmetry_limit;
520 float skgen_retarget_angle_weight;
521 float skgen_retarget_length_weight;
522 float skgen_retarget_distance_weight;
525 char skgen_postpro_passes;
526 char skgen_subdivisions[3];
527 char skgen_multi_level;
529 /* Skeleton Sketching */
530 struct Object *skgen_template;
532 char bone_sketching_convert;
533 char skgen_subdivision_number;
534 char skgen_retarget_options;
535 char skgen_retarget_roll;
536 char skgen_side_string[8];
537 char skgen_num_string[8];
543 short snap_mode, snap_flag, snap_target;
544 short proportional, prop_mode;
547 typedef struct bStats {
548 /* scene totals for visible layers */
549 int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
550 int totvert, totface;
554 typedef struct Scene {
556 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
558 struct Object *camera;
565 struct Base *basact; /* active base */
566 struct Object *obedit; /* name replaces old G.obedit */
568 float cursor[3]; /* 3d cursor location */
569 float twcent[3]; /* center for transform widget */
570 float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
574 short flag; /* various settings */
578 struct bNodeTree *nodetree;
580 struct Editing *ed; /* sequence editor data is allocated here */
582 struct GameFraming framing;
584 struct ToolSettings *toolsettings; /* default allocated now */
585 struct SceneStats *stats; /* default allocated now */
587 /* migrate or replace? depends on some internal things... */
588 /* no, is on the right place (ton) */
590 struct AudioData audio; /* DEPRECATED 2.5 */
592 ScriptLink scriptlink;
595 ListBase transform_spaces;
598 /* none of the dependancy graph vars is mean to be saved */
599 struct DagForest *theDag;
600 short dagisvalid, dagflags;
601 short recalc; /* recalc = counterpart of ob->recalc */
608 /* User-Defined KeyingSets */
609 int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */
610 ListBase keyingsets; /* KeyingSets for the given frame */
614 /* **************** RENDERDATA ********************* */
618 #define R_BACKBUFANIM 2
620 #define R_FRONTBUFANIM 8
624 #define R_SHADOW 0x0002
625 #define R_GAMMA 0x0004
626 #define R_ORTHO 0x0008
627 #define R_ENVMAP 0x0010
628 #define R_EDGE 0x0020
629 #define R_FIELDS 0x0040
630 #define R_FIELDSTILL 0x0080
631 #define R_RADIO 0x0100
632 #define R_BORDER 0x0200
633 #define R_PANORAMA 0x0400
634 #define R_CROP 0x0800
635 #define R_COSMO 0x1000
636 #define R_ODDFIELD 0x2000
637 #define R_MBLUR 0x4000
638 /* unified was here */
639 #define R_RAYTRACE 0x10000
640 /* R_GAUSS is obsolete, but used to retrieve setting from old files */
641 #define R_GAUSS 0x20000
642 /* fbuf obsolete... */
643 #define R_FBUF 0x40000
644 /* threads obsolete... is there for old files, now use for autodetect threads */
645 #define R_THREADS 0x80000
646 /* Use the same flag for autothreads */
647 #define R_FIXED_THREADS 0x80000
649 #define R_SPEED 0x100000
650 #define R_SSS 0x200000
651 #define R_NO_OVERWRITE 0x400000 /* skip existing files */
652 #define R_TOUCH 0x800000 /* touch files before rendering */
653 #define R_SIMPLIFY 0x1000000
657 #define R_FILTER_BOX 0
658 #define R_FILTER_TENT 1
659 #define R_FILTER_QUAD 2
660 #define R_FILTER_CUBIC 3
661 #define R_FILTER_CATROM 4
662 #define R_FILTER_GAUSS 5
663 #define R_FILTER_MITCH 6
664 #define R_FILTER_FAST_GAUSS 7 /* note, this is only used for nodes at the moment */
666 /* yafray: renderer flag (not only exclusive to yafray) */
670 /* scemode (int now) */
671 #define R_DOSEQ 0x0001
672 #define R_BG_RENDER 0x0002
673 /* passepartout is camera option now, keep this for backward compatibility */
674 #define R_PASSEPARTOUT 0x0004
675 #define R_PREVIEWBUTS 0x0008
676 #define R_EXTENSION 0x0010
677 #define R_NODE_PREVIEW 0x0020
678 #define R_DOCOMP 0x0040
679 #define R_COMP_CROP 0x0080
680 #define R_FREE_IMAGE 0x0100
681 #define R_SINGLE_LAYER 0x0200
682 #define R_EXR_TILE_FILE 0x0400
683 #define R_COMP_FREE 0x0800
684 #define R_NO_IMAGE_LOAD 0x1000
685 #define R_NO_TEX 0x2000
686 #define R_STAMP_INFO 0x4000
687 #define R_FULL_SAMPLE 0x8000
688 #define R_COMP_RERENDER 0x10000
689 #define R_RECURS_PROTECTION 0x20000
692 #define R_STAMP_TIME 0x0001
693 #define R_STAMP_FRAME 0x0002
694 #define R_STAMP_DATE 0x0004
695 #define R_STAMP_CAMERA 0x0008
696 #define R_STAMP_SCENE 0x0010
697 #define R_STAMP_NOTE 0x0020
698 #define R_STAMP_DRAW 0x0040 /* draw in the image */
699 #define R_STAMP_MARKER 0x0080
700 #define R_STAMP_FILENAME 0x0100
701 #define R_STAMP_SEQSTRIP 0x0200
705 #define R_ALPHAPREMUL 1
709 #define R_PLANES24 24
710 #define R_PLANES32 32
717 #define R_FTYPE 3 /* ftype is nomore */
725 #define R_AVICODEC 18
726 #define R_QUICKTIME 19
732 #define R_FRAMESERVER 25
735 #define R_MULTILAYER 28
739 /* subimtype, flag options for imtype */
740 #define R_OPENEXR_HALF 1
741 #define R_OPENEXR_ZBUF 2
742 #define R_PREVIEW_JPG 4
743 #define R_CINEON_LOG 8
744 #define R_TIFF_16BIT 16
746 #define R_JPEG2K_12BIT 32 /* Jpeg2000 */
747 #define R_JPEG2K_16BIT 64
748 #define R_JPEG2K_YCC 128 /* when disabled use RGB */
749 #define R_JPEG2K_CINE_PRESET 256
750 #define R_JPEG2K_CINE_48FPS 512
753 /* bake_mode: same as RE_BAKE_xxx defines */
755 #define R_BAKE_CLEAR 1
757 #define R_BAKE_TO_ACTIVE 4
758 #define R_BAKE_NORMALIZE 8
760 /* bake_normal_space */
761 #define R_BAKE_SPACE_CAMERA 0
762 #define R_BAKE_SPACE_WORLD 1
763 #define R_BAKE_SPACE_OBJECT 2
764 #define R_BAKE_SPACE_TANGENT 3
766 /* **************** SCENE ********************* */
768 /* for general use */
769 #define MAXFRAME 300000
770 #define MAXFRAMEF 300000.0f
773 #define MINFRAMEF 1.0f
775 /* depricate this! */
776 #define TESTBASE(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
777 #define TESTBASELIB(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
778 #define TESTBASELIB_BGMODE(base) ( ((base)->flag & SELECT) && ((base)->lay & (v3d ? v3d->lay : scene->lay)) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
779 #define BASE_SELECTABLE(v3d, base) ((base->lay & v3d->lay) && (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0)
780 #define FIRSTBASE scene->base.first
781 #define LASTBASE scene->base.last
782 #define BASACT (scene->basact)
783 #define OBACT (BASACT? BASACT->object: 0)
785 #define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
786 #define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
787 #define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
788 #define CFRA (scene->r.cfra)
789 #define F_CFRA ((float)(scene->r.cfra))
790 #define SFRA (scene->r.sfra)
791 #define EFRA (scene->r.efra)
792 #define PSFRA ((scene->r.psfra != 0)? (scene->r.psfra): (scene->r.sfra))
793 #define PEFRA ((scene->r.psfra != 0)? (scene->r.pefra): (scene->r.efra))
794 #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (a)) / scene->r.frs_sec)
795 #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (a)) / scene->r.frs_sec_base)
796 #define FPS (((double) scene->r.frs_sec) / scene->r.frs_sec_base)
798 #define RAD_PHASE_PATCHES 1
799 #define RAD_PHASE_FACES 2
801 /* base->flag is in DNA_object_types.h */
803 /* toolsettings->snap_flag */
805 #define SCE_SNAP_ROTATE 2
806 #define SCE_SNAP_PEEL_OBJECT 4
807 /* toolsettings->snap_target */
808 #define SCE_SNAP_TARGET_CLOSEST 0
809 #define SCE_SNAP_TARGET_CENTER 1
810 #define SCE_SNAP_TARGET_MEDIAN 2
811 #define SCE_SNAP_TARGET_ACTIVE 3
812 /* toolsettings->snap_mode */
813 #define SCE_SNAP_MODE_VERTEX 0
814 #define SCE_SNAP_MODE_EDGE 1
815 #define SCE_SNAP_MODE_FACE 2
816 #define SCE_SNAP_MODE_VOLUME 3
818 /* toolsettings->selectmode */
819 #define SCE_SELECT_VERTEX 1 /* for mesh */
820 #define SCE_SELECT_EDGE 2
821 #define SCE_SELECT_FACE 4
823 /* toolsettings->particle.selectmode for particles */
824 #define SCE_SELECT_PATH 1
825 #define SCE_SELECT_POINT 2
826 #define SCE_SELECT_END 4
828 /* sce->recalc (now in use by previewrender) */
829 #define SCE_PRV_CHANGED 1
831 /* toolsettings->prop_mode (proportional falloff) */
832 #define PROP_SMOOTH 0
833 #define PROP_SPHERE 1
838 #define PROP_RANDOM 6
841 #define SCE_DS_SELECTED (1<<0)
842 #define SCE_DS_COLLAPSED (1<<1)
845 /* return flag next_object function */
855 #define AUDIO_SCRUB 4
857 #define FFMPEG_MULTIPLEX_AUDIO 1
858 #define FFMPEG_AUTOSPLIT_OUTPUT 2
861 typedef enum SculptFlags {
865 SCULPT_INPUT_SMOOTH = 8,
866 SCULPT_DRAW_FAST = 16,
867 SCULPT_DRAW_BRUSH = 32,
873 /* toolsettings->imagepaint_flag */
874 #define IMAGEPAINT_DRAWING 1
875 #define IMAGEPAINT_DRAW_TOOL 2
876 #define IMAGEPAINT_DRAW_TOOL_DRAWING 4
878 /* projection painting only */
879 #define IMAGEPAINT_PROJECT_DISABLE 8 /* Non projection 3D painting */
880 #define IMAGEPAINT_PROJECT_XRAY 16
881 #define IMAGEPAINT_PROJECT_BACKFACE 32
882 #define IMAGEPAINT_PROJECT_FLAT 64
883 #define IMAGEPAINT_PROJECT_LAYER_CLONE 128
884 #define IMAGEPAINT_PROJECT_LAYER_MASK 256
885 #define IMAGEPAINT_PROJECT_LAYER_MASK_INV 512
887 /* toolsettings->uvcalc_flag */
888 #define UVCALC_FILLHOLES 1
889 #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */
890 #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */
892 /* toolsettings->uv_flag */
893 #define UV_SYNC_SELECTION 1
894 #define UV_SHOW_SAME_IMAGE 2
896 /* toolsettings->uv_selectmode */
897 #define UV_SELECT_VERTEX 1
898 #define UV_SELECT_EDGE 2
899 #define UV_SELECT_FACE 4
900 #define UV_SELECT_ISLAND 8
902 /* toolsettings->edge_mode */
903 #define EDGE_MODE_SELECT 0
904 #define EDGE_MODE_TAG_SEAM 1
905 #define EDGE_MODE_TAG_SHARP 2
906 #define EDGE_MODE_TAG_CREASE 3
907 #define EDGE_MODE_TAG_BEVEL 4
909 /* toolsettings->particle flag */
910 #define PE_KEEP_LENGTHS 1
911 #define PE_LOCK_FIRST 2
912 #define PE_DEFLECT_EMITTER 4
913 #define PE_INTERPOLATE_ADDED 8
914 #define PE_SHOW_CHILD 16
915 #define PE_SHOW_TIME 32
916 #define PE_X_MIRROR 64
918 /* toolsetting->particle brushtype */
919 #define PE_BRUSH_NONE -1
920 #define PE_BRUSH_COMB 0
921 #define PE_BRUSH_CUT 1
922 #define PE_BRUSH_LENGTH 2
923 #define PE_BRUSH_PUFF 3
924 #define PE_BRUSH_ADD 4
925 #define PE_BRUSH_WEIGHT 5
926 #define PE_BRUSH_SMOOTH 6
928 /* this must equal ParticleEditSettings.brush array size */
929 #define PE_TOT_BRUSH 7
931 /* toolsettings->retopo_mode */
933 #define RETOPO_PAINT 2
935 /* toolsettings->retopo_paint_tool */
937 #define RETOPO_LINE 2
938 #define RETOPO_ELLIPSE 4
940 /* toolsettings->skgen_options */
941 #define SKGEN_FILTER_INTERNAL (1 << 0)
942 #define SKGEN_FILTER_EXTERNAL (1 << 1)
943 #define SKGEN_SYMMETRY (1 << 2)
944 #define SKGEN_CUT_LENGTH (1 << 3)
945 #define SKGEN_CUT_ANGLE (1 << 4)
946 #define SKGEN_CUT_CORRELATION (1 << 5)
947 #define SKGEN_HARMONIC (1 << 6)
948 #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
949 #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
950 #define SKGEN_FILTER_SMART (1 << 9)
951 #define SKGEN_DISP_LENGTH (1 << 10)
952 #define SKGEN_DISP_WEIGHT (1 << 11)
953 #define SKGEN_DISP_ORIG (1 << 12)
954 #define SKGEN_DISP_EMBED (1 << 13)
955 #define SKGEN_DISP_INDEX (1 << 14)
957 #define SKGEN_SUB_LENGTH 0
958 #define SKGEN_SUB_ANGLE 1
959 #define SKGEN_SUB_CORRELATION 2
960 #define SKGEN_SUB_TOTAL 3
962 /* toolsettings->skgen_postpro */
963 #define SKGEN_SMOOTH 0
964 #define SKGEN_AVERAGE 1
965 #define SKGEN_SHARPEN 2
967 /* toolsettings->bone_sketching */
968 #define BONE_SKETCHING 1
969 #define BONE_SKETCHING_QUICK 2
970 #define BONE_SKETCHING_ADJUST 4
972 /* toolsettings->bone_sketching_convert */
973 #define SK_CONVERT_CUT_FIXED 0
974 #define SK_CONVERT_CUT_LENGTH 1
975 #define SK_CONVERT_CUT_ADAPTATIVE 2
976 #define SK_CONVERT_RETARGET 3
978 /* toolsettings->skgen_retarget_options */
979 #define SK_RETARGET_AUTONAME 1
981 /* toolsettings->skgen_retarget_roll */
982 #define SK_RETARGET_ROLL_VIEW 1
983 #define SK_RETARGET_ROLL_JOINT 2