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 */ // XXX deprecated since 2.5
187 short depth, attrib, rt1, rt2; /* standalone player */ // XXX deprecated since 2.5
189 short stereomode; /* standalone player stereo settings */ // XXX deprecated since 2.5
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 */
222 * Render to image editor, fullscreen or to new window.
229 * Flags for render settings. Use bit-masking to access the settings.
234 * Flags for render settings. Use bit-masking to access the settings.
238 /* render engine, octree resolution */
239 short renderer, ocres;
242 * What to do with the sky/background. Picks sky/premul/key
243 * blending for the background
248 * The number of samples to use per pixel.
252 short frs_sec, edgeint;
254 /* safety, border and display rect */
258 /* information on different layers to be rendered */
263 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
267 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
274 * Value used to define filter size for all filter options */
278 /* color management settings - color profiles, gamma correction, etc */
281 /** post-production settings. Depricated, but here for upwards compat (initialized to 1) */
282 float postgamma, posthue, postsat;
284 /* Dither noise intensity */
285 float dither_intensity;
287 /* Bake Render options */
288 short bake_osa, bake_filter, bake_mode, bake_flag;
289 short bake_normal_space, bake_quad_split;
290 float bake_maxdist, bake_biasdist, bake_pad;
292 /* yafray: global panel params. TODO: move elsewhere */
293 short GIquality, GIcache, GImethod, GIphotons, GIdirect;
294 short YF_AA, YFexportxml, YF_nobump, YF_clamprgb, yfpad1;
295 int GIdepth, GIcausdepth, GIpixelspersample;
296 int GIphotoncount, GImixphotons;
297 float GIphotonradius;
298 int YF_raydepth, YF_AApasses, YF_AAsamples, yfpad2;
299 float GIshadowquality, GIrefinement, GIpower, GIindirpower;
300 float YF_gamma, YF_exposure, YF_raybias, YF_AApixelsize, YF_AAthreshold;
302 /* paths to backbufffer, output, ftype */
303 char backbuf[160], pic[160];
307 short stamp_font_id, pad3; /* select one of blenders bitmap fonts */
309 /* stamp info user data. */
310 char stamp_udata[160];
312 /* foreground/background color. */
316 /* render simplify */
317 int simplify_subsurf;
318 int simplify_shadowsamples;
319 float simplify_particles;
320 float simplify_aosss;
323 short cineonwhite, cineonblack;
327 short jp2_preset, jp2_depth;
330 /* Dome variables */ // XXX deprecated since 2.5
331 short domeres, domemode; // XXX deprecated since 2.5
332 short domeangle, dometilt; // XXX deprecated since 2.5
333 float domeresbuf; // XXX deprecated since 2.5
334 float pad2; // XXX deprecated since 2.5
335 struct Text *dometext; // XXX deprecated since 2.5
339 /* control render convert and shading engine */
340 typedef struct RenderProfile {
341 struct RenderProfile *next, *prev;
346 short shadbufsample_max;
349 float ao_error, pad2;
353 typedef struct GameDome {
357 struct Text *warptext;
360 #define DOME_FISHEYE 1
361 #define DOME_TRUNCATED_FRONT 2
362 #define DOME_TRUNCATED_REAR 3
363 #define DOME_ENVMAP 4
364 #define DOME_PANORAM_SPH 5
365 #define DOME_NUM_MODES 6
367 typedef struct GameFraming {
369 char type, pad1, pad2, pad3;
372 #define SCE_GAMEFRAMING_BARS 0
373 #define SCE_GAMEFRAMING_EXTEND 1
374 #define SCE_GAMEFRAMING_SCALE 2
376 typedef struct GameData {
378 /* physics (it was in world)*/
379 float gravity; /*Gravitation constant for the game world*/
382 * Radius of the activity bubble, in Manhattan length. Objects
383 * outside the box are activity-culled. */
384 float activityBoxRadius; //it's not being used ANYWHERE !!!!!!!!!!!!!!
386 * bit 3: (gameengine): Activity culling is enabled.
387 * bit 5: (gameengine) : enable Bullet DBVT tree for view frustrum culling
390 short occlusionRes; /* resolution of occlusion Z buffer in pixel */
392 short ticrate, maxlogicstep, physubstep, maxphystep;
394 /* standalone player */
395 struct GameFraming framing;
397 short fullscreen, xplay, yplay, freqplay;
398 short depth, attrib, rt1, rt2;
400 /* stereo/dome mode */
401 struct GameDome dome;
402 short stereoflag, stereomode, xsch, ysch; //xsch and ysch can be deleted !!!
405 #define STEREO_NOSTEREO 1
406 #define STEREO_ENABLE 2
407 #define STEREO_DOME 3
409 //#define STEREO_NOSTEREO 1
410 #define STEREO_QUADBUFFERED 2
411 #define STEREO_ABOVEBELOW 3
412 #define STEREO_INTERLACED 4
413 #define STEREO_ANAGLYPH 5
414 #define STEREO_SIDEBYSIDE 6
415 #define STEREO_VINTERLACE 7
416 //#define STEREO_DOME 8
422 #define WOPHY_DYNAMO 3
424 #define WOPHY_BULLET 5
426 typedef struct TimeMarker {
427 struct TimeMarker *next, *prev;
433 typedef struct ImagePaintSettings {
437 /* for projection painting only */
438 short seam_bleed,normal_angle;
440 void *paintcursor; /* wm handle */
441 } ImagePaintSettings;
443 typedef struct ParticleBrushData {
444 short size, strength; /* common settings */
445 short step, invert; /* for specific brushes only */
448 typedef struct ParticleEditSettings {
454 ParticleBrushData brush[7]; /* 7 = PE_TOT_BRUSH */
455 void *paintcursor; /* runtime */
461 } ParticleEditSettings;
463 typedef struct TransformOrientation {
464 struct TransformOrientation *next, *prev;
467 } TransformOrientation;
469 struct SculptSession;
470 typedef struct Sculpt
472 /* Note! a deep copy of this struct must be done header_info.c's copy_scene function */
473 /* Data stored only from entering sculptmode until exiting sculptmode */
474 struct SculptSession *session;
477 /* For rotating around a pivot point */
480 /* For the Brush Shape */
482 /* Control tablet input */
483 char tablet_size, tablet_strength;
487 typedef struct VPaint {
490 float gamma, mul; /* should become part of struct Brush? */
492 int tot; /* allocation size of prev buffers */
493 unsigned int *vpaint_prev; /* previous mesh colors */
494 struct MDeformVert *wpaint_prev; /* previous vertex weights */
496 void *paintcursor; /* wm handle */
500 #define VP_COLINDEX 1
505 #define VP_MIRROR_X 32
507 #define VP_ONLYVGROUP 128
510 typedef struct ToolSettings {
511 VPaint *vpaint; /* vertex paint */
512 VPaint *wpaint; /* weight paint */
518 /* Subdivide Settings */
521 /*Triangle to Quad conversion threshold*/
528 float extr_offs; /* extrude offset */
529 float doublimit; /* remove doubles limit */
530 float normalsize; /* size of normals */
533 /* Selection Mode for Mesh */
536 /* Primitive Settings */
541 /* Cylinder - Tube - Circle */
547 float uvcalc_cubesize;
550 short uvcalc_mapalign;
552 short uv_flag, uv_selectmode;
556 short autoik_chainlen;
558 /* Image Paint (8 byttse aligned please!) */
559 struct ImagePaintSettings imapaint;
561 /* Particle Editing */
562 struct ParticleEditSettings particle;
564 /* Transform Proportional Area of Effect */
565 float proportional_size;
567 /* Select Group Threshold */
573 /* Auto-Keying Mode */
574 short autokey_mode, pad2; /* defines in DNA_userdef_types.h */
578 char retopo_paint_tool;
579 char line_div, ellipse_div, retopo_hotspot;
582 char multires_subdiv_type;
584 /* Skeleton generation */
585 short skgen_resolution;
586 float skgen_threshold_internal;
587 float skgen_threshold_external;
588 float skgen_length_ratio;
589 float skgen_length_limit;
590 float skgen_angle_limit;
591 float skgen_correlation_limit;
592 float skgen_symmetry_limit;
593 float skgen_retarget_angle_weight;
594 float skgen_retarget_length_weight;
595 float skgen_retarget_distance_weight;
598 char skgen_postpro_passes;
599 char skgen_subdivisions[3];
600 char skgen_multi_level;
602 /* Skeleton Sketching */
603 struct Object *skgen_template;
605 char bone_sketching_convert;
606 char skgen_subdivision_number;
607 char skgen_retarget_options;
608 char skgen_retarget_roll;
609 char skgen_side_string[8];
610 char skgen_num_string[8];
616 short snap_mode, snap_flag, snap_target;
617 short proportional, prop_mode;
620 typedef struct bStats {
621 /* scene totals for visible layers */
622 int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
623 int totvert, totface;
627 typedef struct Scene {
629 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
631 struct Object *camera;
638 struct Base *basact; /* active base */
639 struct Object *obedit; /* name replaces old G.obedit */
641 float cursor[3]; /* 3d cursor location */
642 float twcent[3]; /* center for transform widget */
643 float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
647 short flag; /* various settings */
651 struct bNodeTree *nodetree;
653 struct Editing *ed; /* sequence editor data is allocated here */
655 struct ToolSettings *toolsettings; /* default allocated now */
656 struct SceneStats *stats; /* default allocated now */
658 /* migrate or replace? depends on some internal things... */
659 /* no, is on the right place (ton) */
661 struct AudioData audio; /* DEPRECATED 2.5 */
663 ScriptLink scriptlink;
666 ListBase transform_spaces;
669 /* none of the dependancy graph vars is mean to be saved */
670 struct DagForest *theDag;
671 short dagisvalid, dagflags;
672 short recalc; /* recalc = counterpart of ob->recalc */
679 /* User-Defined KeyingSets */
680 int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */
681 ListBase keyingsets; /* KeyingSets for the given frame */
684 struct GameFraming framing; // XXX deprecated since 2.5
689 /* **************** RENDERDATA ********************* */
693 #define R_BACKBUFANIM 2
695 #define R_FRONTBUFANIM 8
699 #define R_SHADOW 0x0002
700 #define R_GAMMA 0x0004
701 #define R_ORTHO 0x0008
702 #define R_ENVMAP 0x0010
703 #define R_EDGE 0x0020
704 #define R_FIELDS 0x0040
705 #define R_FIELDSTILL 0x0080
706 #define R_RADIO 0x0100
707 #define R_BORDER 0x0200
708 #define R_PANORAMA 0x0400 /* deprecated as scene option, still used in renderer */
709 #define R_CROP 0x0800
710 #define R_COSMO 0x1000
711 #define R_ODDFIELD 0x2000
712 #define R_MBLUR 0x4000
713 /* unified was here */
714 #define R_RAYTRACE 0x10000
715 /* R_GAUSS is obsolete, but used to retrieve setting from old files */
716 #define R_GAUSS 0x20000
717 /* fbuf obsolete... */
718 #define R_FBUF 0x40000
719 /* threads obsolete... is there for old files, now use for autodetect threads */
720 #define R_THREADS 0x80000
721 /* Use the same flag for autothreads */
722 #define R_FIXED_THREADS 0x80000
724 #define R_SPEED 0x100000
725 #define R_SSS 0x200000
726 #define R_NO_OVERWRITE 0x400000 /* skip existing files */
727 #define R_TOUCH 0x800000 /* touch files before rendering */
728 #define R_SIMPLIFY 0x1000000
732 #define R_OUTPUT_SCREEN 0
733 #define R_OUTPUT_AREA 1
734 #define R_OUTPUT_WINDOW 2
735 #define R_OUTPUT_FORKED 3
738 #define R_FILTER_BOX 0
739 #define R_FILTER_TENT 1
740 #define R_FILTER_QUAD 2
741 #define R_FILTER_CUBIC 3
742 #define R_FILTER_CATROM 4
743 #define R_FILTER_GAUSS 5
744 #define R_FILTER_MITCH 6
745 #define R_FILTER_FAST_GAUSS 7 /* note, this is only used for nodes at the moment */
747 /* yafray: renderer flag (not only exclusive to yafray) */
751 /* scemode (int now) */
752 #define R_DOSEQ 0x0001
753 #define R_BG_RENDER 0x0002
754 /* passepartout is camera option now, keep this for backward compatibility */
755 #define R_PASSEPARTOUT 0x0004
756 #define R_PREVIEWBUTS 0x0008
757 #define R_EXTENSION 0x0010
758 #define R_NODE_PREVIEW 0x0020
759 #define R_DOCOMP 0x0040
760 #define R_COMP_CROP 0x0080
761 #define R_FREE_IMAGE 0x0100
762 #define R_SINGLE_LAYER 0x0200
763 #define R_EXR_TILE_FILE 0x0400
764 #define R_COMP_FREE 0x0800
765 #define R_NO_IMAGE_LOAD 0x1000
766 #define R_NO_TEX 0x2000
767 #define R_STAMP_INFO 0x4000 /* deprecated */
768 #define R_FULL_SAMPLE 0x8000
769 #define R_COMP_RERENDER 0x10000
770 #define R_RECURS_PROTECTION 0x20000
773 #define R_STAMP_TIME 0x0001
774 #define R_STAMP_FRAME 0x0002
775 #define R_STAMP_DATE 0x0004
776 #define R_STAMP_CAMERA 0x0008
777 #define R_STAMP_SCENE 0x0010
778 #define R_STAMP_NOTE 0x0020
779 #define R_STAMP_DRAW 0x0040 /* draw in the image */
780 #define R_STAMP_MARKER 0x0080
781 #define R_STAMP_FILENAME 0x0100
782 #define R_STAMP_SEQSTRIP 0x0200
783 #define R_STAMP_ALL (R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_CAMERA|R_STAMP_SCENE|R_STAMP_NOTE|R_STAMP_MARKER|R_STAMP_FILENAME|R_STAMP_SEQSTRIP)
787 #define R_ALPHAPREMUL 1
791 #define R_PLANES24 24
792 #define R_PLANES32 32
796 #define R_COLOR_MANAGEMENT 1
802 #define R_FTYPE 3 /* ftype is nomore */
810 #define R_AVICODEC 18
811 #define R_QUICKTIME 19
817 #define R_FRAMESERVER 25
820 #define R_MULTILAYER 28
827 /* subimtype, flag options for imtype */
828 #define R_OPENEXR_HALF 1
829 #define R_OPENEXR_ZBUF 2
830 #define R_PREVIEW_JPG 4
831 #define R_CINEON_LOG 8
832 #define R_TIFF_16BIT 16
834 #define R_JPEG2K_12BIT 32 /* Jpeg2000 */
835 #define R_JPEG2K_16BIT 64
836 #define R_JPEG2K_YCC 128 /* when disabled use RGB */
837 #define R_JPEG2K_CINE_PRESET 256
838 #define R_JPEG2K_CINE_48FPS 512
841 /* bake_mode: same as RE_BAKE_xxx defines */
843 #define R_BAKE_CLEAR 1
845 #define R_BAKE_TO_ACTIVE 4
846 #define R_BAKE_NORMALIZE 8
848 /* bake_normal_space */
849 #define R_BAKE_SPACE_CAMERA 0
850 #define R_BAKE_SPACE_WORLD 1
851 #define R_BAKE_SPACE_OBJECT 2
852 #define R_BAKE_SPACE_TANGENT 3
854 /* **************** SCENE ********************* */
856 /* for general use */
857 #define MAXFRAME 300000
858 #define MAXFRAMEF 300000.0f
861 #define MINFRAMEF 1.0f
863 /* (minimum frame number for current-frame) */
864 #define MINAFRAME -300000
865 #define MINAFRAMEF -300000.0f
867 /* depricate this! */
868 #define TESTBASE(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
869 #define TESTBASELIB(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & v3d->lay) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
870 #define TESTBASELIB_BGMODE(v3d, base) ( ((base)->flag & SELECT) && ((base)->lay & (v3d ? v3d->lay : scene->lay)) && ((base)->object->id.lib==0) && (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
871 #define BASE_SELECTABLE(v3d, base) ((base->lay & v3d->lay) && (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0)
872 #define FIRSTBASE scene->base.first
873 #define LASTBASE scene->base.last
874 #define BASACT (scene->basact)
875 #define OBACT (BASACT? BASACT->object: 0)
877 #define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
878 #define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
879 #define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
880 #define CFRA (scene->r.cfra)
881 #define F_CFRA ((float)(scene->r.cfra))
882 #define SFRA (scene->r.sfra)
883 #define EFRA (scene->r.efra)
884 #define PSFRA ((scene->r.psfra != 0)? (scene->r.psfra): (scene->r.sfra))
885 #define PEFRA ((scene->r.psfra != 0)? (scene->r.pefra): (scene->r.efra))
886 #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (a)) / scene->r.frs_sec)
887 #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (a)) / scene->r.frs_sec_base)
888 #define FPS (((double) scene->r.frs_sec) / scene->r.frs_sec_base)
890 #define RAD_PHASE_PATCHES 1
891 #define RAD_PHASE_FACES 2
893 /* base->flag is in DNA_object_types.h */
895 /* toolsettings->snap_flag */
897 #define SCE_SNAP_ROTATE 2
898 #define SCE_SNAP_PEEL_OBJECT 4
899 /* toolsettings->snap_target */
900 #define SCE_SNAP_TARGET_CLOSEST 0
901 #define SCE_SNAP_TARGET_CENTER 1
902 #define SCE_SNAP_TARGET_MEDIAN 2
903 #define SCE_SNAP_TARGET_ACTIVE 3
904 /* toolsettings->snap_mode */
905 #define SCE_SNAP_MODE_VERTEX 0
906 #define SCE_SNAP_MODE_EDGE 1
907 #define SCE_SNAP_MODE_FACE 2
908 #define SCE_SNAP_MODE_VOLUME 3
910 /* toolsettings->selectmode */
911 #define SCE_SELECT_VERTEX 1 /* for mesh */
912 #define SCE_SELECT_EDGE 2
913 #define SCE_SELECT_FACE 4
915 /* toolsettings->particle.selectmode for particles */
916 #define SCE_SELECT_PATH 1
917 #define SCE_SELECT_POINT 2
918 #define SCE_SELECT_END 4
920 /* sce->recalc (now in use by previewrender) */
921 #define SCE_PRV_CHANGED 1
923 /* toolsettings->prop_mode (proportional falloff) */
924 #define PROP_SMOOTH 0
925 #define PROP_SPHERE 1
930 #define PROP_RANDOM 6
933 #define SCE_DS_SELECTED (1<<0)
934 #define SCE_DS_COLLAPSED (1<<1)
935 #define SCE_NLA_EDIT_ON (1<<2)
938 /* return flag next_object function */
948 #define AUDIO_SCRUB 4
950 #define FFMPEG_MULTIPLEX_AUDIO 1
951 #define FFMPEG_AUTOSPLIT_OUTPUT 2
954 typedef enum SculptFlags {
958 SCULPT_INPUT_SMOOTH = 8,
959 SCULPT_DRAW_FAST = 16,
960 SCULPT_DRAW_BRUSH = 32,
966 /* toolsettings->imagepaint_flag */
967 #define IMAGEPAINT_DRAWING 1
968 #define IMAGEPAINT_DRAW_TOOL 2
969 #define IMAGEPAINT_DRAW_TOOL_DRAWING 4
971 /* projection painting only */
972 #define IMAGEPAINT_PROJECT_DISABLE 8 /* Non projection 3D painting */
973 #define IMAGEPAINT_PROJECT_XRAY 16
974 #define IMAGEPAINT_PROJECT_BACKFACE 32
975 #define IMAGEPAINT_PROJECT_FLAT 64
976 #define IMAGEPAINT_PROJECT_LAYER_CLONE 128
977 #define IMAGEPAINT_PROJECT_LAYER_MASK 256
978 #define IMAGEPAINT_PROJECT_LAYER_MASK_INV 512
980 /* toolsettings->uvcalc_flag */
981 #define UVCALC_FILLHOLES 1
982 #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */
983 #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */
985 /* toolsettings->uv_flag */
986 #define UV_SYNC_SELECTION 1
987 #define UV_SHOW_SAME_IMAGE 2
989 /* toolsettings->uv_selectmode */
990 #define UV_SELECT_VERTEX 1
991 #define UV_SELECT_EDGE 2
992 #define UV_SELECT_FACE 4
993 #define UV_SELECT_ISLAND 8
995 /* toolsettings->edge_mode */
996 #define EDGE_MODE_SELECT 0
997 #define EDGE_MODE_TAG_SEAM 1
998 #define EDGE_MODE_TAG_SHARP 2
999 #define EDGE_MODE_TAG_CREASE 3
1000 #define EDGE_MODE_TAG_BEVEL 4
1002 /* toolsettings->particle flag */
1003 #define PE_KEEP_LENGTHS 1
1004 #define PE_LOCK_FIRST 2
1005 #define PE_DEFLECT_EMITTER 4
1006 #define PE_INTERPOLATE_ADDED 8
1007 #define PE_SHOW_CHILD 16
1008 #define PE_SHOW_TIME 32
1009 #define PE_X_MIRROR 64
1011 /* toolsetting->particle brushtype */
1012 #define PE_BRUSH_NONE -1
1013 #define PE_BRUSH_COMB 0
1014 #define PE_BRUSH_CUT 1
1015 #define PE_BRUSH_LENGTH 2
1016 #define PE_BRUSH_PUFF 3
1017 #define PE_BRUSH_ADD 4
1018 #define PE_BRUSH_WEIGHT 5
1019 #define PE_BRUSH_SMOOTH 6
1021 /* this must equal ParticleEditSettings.brush array size */
1022 #define PE_TOT_BRUSH 7
1024 /* toolsettings->retopo_mode */
1026 #define RETOPO_PAINT 2
1028 /* toolsettings->retopo_paint_tool */
1029 #define RETOPO_PEN 1
1030 #define RETOPO_LINE 2
1031 #define RETOPO_ELLIPSE 4
1033 /* toolsettings->skgen_options */
1034 #define SKGEN_FILTER_INTERNAL (1 << 0)
1035 #define SKGEN_FILTER_EXTERNAL (1 << 1)
1036 #define SKGEN_SYMMETRY (1 << 2)
1037 #define SKGEN_CUT_LENGTH (1 << 3)
1038 #define SKGEN_CUT_ANGLE (1 << 4)
1039 #define SKGEN_CUT_CORRELATION (1 << 5)
1040 #define SKGEN_HARMONIC (1 << 6)
1041 #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
1042 #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
1043 #define SKGEN_FILTER_SMART (1 << 9)
1044 #define SKGEN_DISP_LENGTH (1 << 10)
1045 #define SKGEN_DISP_WEIGHT (1 << 11)
1046 #define SKGEN_DISP_ORIG (1 << 12)
1047 #define SKGEN_DISP_EMBED (1 << 13)
1048 #define SKGEN_DISP_INDEX (1 << 14)
1050 #define SKGEN_SUB_LENGTH 0
1051 #define SKGEN_SUB_ANGLE 1
1052 #define SKGEN_SUB_CORRELATION 2
1053 #define SKGEN_SUB_TOTAL 3
1055 /* toolsettings->skgen_postpro */
1056 #define SKGEN_SMOOTH 0
1057 #define SKGEN_AVERAGE 1
1058 #define SKGEN_SHARPEN 2
1060 /* toolsettings->bone_sketching */
1061 #define BONE_SKETCHING 1
1062 #define BONE_SKETCHING_QUICK 2
1063 #define BONE_SKETCHING_ADJUST 4
1065 /* toolsettings->bone_sketching_convert */
1066 #define SK_CONVERT_CUT_FIXED 0
1067 #define SK_CONVERT_CUT_LENGTH 1
1068 #define SK_CONVERT_CUT_ADAPTATIVE 2
1069 #define SK_CONVERT_RETARGET 3
1071 /* toolsettings->skgen_retarget_options */
1072 #define SK_RETARGET_AUTONAME 1
1074 /* toolsettings->skgen_retarget_roll */
1075 #define SK_RETARGET_ROLL_VIEW 1
1076 #define SK_RETARGET_ROLL_JOINT 2