2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
19 * All rights reserved.
21 * The Original Code is: all of this file.
23 * Contributor(s): none yet.
25 * ***** END GPL LICENSE BLOCK *****
28 /** \file DNA_scene_types.h
32 #ifndef __DNA_SCENE_TYPES_H__
33 #define __DNA_SCENE_TYPES_H__
37 // XXX, temp feature - campbell
38 #define DURIAN_CAMERA_SWITCH
44 #include "DNA_vec_types.h"
45 #include "DNA_listBase.h"
47 #include "DNA_freestyle_types.h"
63 /* ************************************************************* */
66 /* Base - Wrapper for referencing Objects in a Scene */
68 struct Base *next, *prev;
69 unsigned int lay, selcol;
72 struct Object *object;
75 /* ************************************************************* */
76 /* Output Format Data */
78 typedef struct AviCodecData {
79 void *lpFormat; /* save format */
80 void *lpParms; /* compressor options */
81 unsigned int cbFormat; /* size of lpFormat buffer */
82 unsigned int cbParms; /* size of lpParms buffer */
84 unsigned int fccType; /* stream type, for consistency */
85 unsigned int fccHandler; /* compressor */
86 unsigned int dwKeyFrameEvery; /* keyframe rate */
87 unsigned int dwQuality; /* compress quality 0-10,000 */
88 unsigned int dwBytesPerSecond; /* bytes per second */
89 unsigned int dwFlags; /* flags... see below */
90 unsigned int dwInterleaveEvery; /* for non-video streams only */
93 char avicodecname[128];
96 typedef struct QuicktimeCodecData {
97 /*Old quicktime implementation compatibility fields, read only in 2.5 - deprecated*/
98 void *cdParms; /* codec/compressor options */
99 void *pad; /* padding */
101 unsigned int cdSize; /* size of cdParms buffer */
102 unsigned int pad2; /* padding */
104 char qtcodecname[128];
105 } QuicktimeCodecData;
107 typedef struct QuicktimeCodecSettings {
108 /* Codec settings detailed for 2.5 implementation*/
109 int codecType; /* Types defined in quicktime_export.h */
110 int codecSpatialQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
112 /* Settings not available in current QTKit API */
116 int codecTemporalQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
117 int minSpatialQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
118 int minTemporalQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
120 int bitRate; /* bitrate in bps */
122 /* Audio Codec settings */
130 } QuicktimeCodecSettings;
132 typedef struct FFMpegCodecData {
150 IDProperty *properties;
153 /* ************************************************************* */
156 typedef struct AudioData {
157 int mixrate; // 2.5: now in FFMpegCodecData: audio_mixrate
158 float main; // 2.5: now in FFMpegCodecData: audio_volume
159 float speed_of_sound;
160 float doppler_factor;
168 /* *************************************************************** */
172 typedef struct SceneRenderLayer {
173 struct SceneRenderLayer *next, *prev;
175 char name[64]; /* MAX_NAME */
177 struct Material *mat_override;
178 struct Group *light_override;
180 unsigned int lay; /* scene->lay itself has priority over this */
181 unsigned int lay_zmask; /* has to be after lay, this is for Z-masking */
182 unsigned int lay_exclude; /* not used by internal, exclude */
185 int passflag; /* pass_xor has to be after passflag */
191 struct FreestyleConfig freestyleConfig;
196 #define SCE_LAY_SOLID 1
197 #define SCE_LAY_ZTRA 2
198 #define SCE_LAY_HALO 4
199 #define SCE_LAY_EDGE 8
200 #define SCE_LAY_SKY 16
201 #define SCE_LAY_STRAND 32
202 #define SCE_LAY_FRS 64
203 /* flags between 64 and 0x8000 are set to 1 already, for future options */
205 #define SCE_LAY_ALL_Z 0x8000
206 #define SCE_LAY_XOR 0x10000
207 #define SCE_LAY_DISABLE 0x20000
208 #define SCE_LAY_ZMASK 0x40000
209 #define SCE_LAY_NEG_ZMASK 0x80000
212 #define SCE_PASS_COMBINED (1<<0)
213 #define SCE_PASS_Z (1<<1)
214 #define SCE_PASS_RGBA (1<<2)
215 #define SCE_PASS_DIFFUSE (1<<3)
216 #define SCE_PASS_SPEC (1<<4)
217 #define SCE_PASS_SHADOW (1<<5)
218 #define SCE_PASS_AO (1<<6)
219 #define SCE_PASS_REFLECT (1<<7)
220 #define SCE_PASS_NORMAL (1<<8)
221 #define SCE_PASS_VECTOR (1<<9)
222 #define SCE_PASS_REFRACT (1<<10)
223 #define SCE_PASS_INDEXOB (1<<11)
224 #define SCE_PASS_UV (1<<12)
225 #define SCE_PASS_INDIRECT (1<<13)
226 #define SCE_PASS_MIST (1<<14)
227 #define SCE_PASS_RAYHITS (1<<15)
228 #define SCE_PASS_EMIT (1<<16)
229 #define SCE_PASS_ENVIRONMENT (1<<17)
230 #define SCE_PASS_INDEXMA (1<<18)
231 #define SCE_PASS_DIFFUSE_DIRECT (1<<19)
232 #define SCE_PASS_DIFFUSE_INDIRECT (1<<20)
233 #define SCE_PASS_DIFFUSE_COLOR (1<<21)
234 #define SCE_PASS_GLOSSY_DIRECT (1<<22)
235 #define SCE_PASS_GLOSSY_INDIRECT (1<<23)
236 #define SCE_PASS_GLOSSY_COLOR (1<<24)
237 #define SCE_PASS_TRANSM_DIRECT (1<<25)
238 #define SCE_PASS_TRANSM_INDIRECT (1<<26)
239 #define SCE_PASS_TRANSM_COLOR (1<<27)
241 /* note, srl->passflag is treestore element 'nr' in outliner, short still... */
243 /* *************************************************************** */
245 /* Generic image format settings,
246 * this is used for NodeImageFile and IMAGE_OT_save_as operator too.
248 * note: its a bit strange that even though this is an image format struct
249 * the imtype can still be used to select video formats.
250 * RNA ensures these enum's are only selectable for render output.
252 typedef struct ImageFormatData {
253 char imtype; /* R_IMF_IMTYPE_PNG, R_... */
254 /* note, video types should only ever be set from this
255 * structure when used from RenderData */
256 char depth; /* bits per channel, R_IMF_CHAN_DEPTH_8 -> 32,
257 * not a flag, only set 1 at a time */
259 char planes; /* - R_IMF_PLANES_BW, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA */
260 char flag; /* generic options for all image types, alpha zbuffer */
262 char quality; /* (0 - 100), eg: jpeg quality */
263 char compress; /* (0 - 100), eg: png compression */
266 /* --- format specific --- */
273 short cineon_white, cineon_black;
284 /* ImageFormatData.imtype */
285 #define R_IMF_IMTYPE_TARGA 0
286 #define R_IMF_IMTYPE_IRIS 1
287 /* #define R_HAMX 2 */ /* hamx is nomore */
288 /* #define R_FTYPE 3 */ /* ftype is nomore */
289 #define R_IMF_IMTYPE_JPEG90 4
290 /* #define R_MOVIE 5 */ /* movie is nomore */
291 #define R_IMF_IMTYPE_IRIZ 7
292 #define R_IMF_IMTYPE_RAWTGA 14
293 #define R_IMF_IMTYPE_AVIRAW 15
294 #define R_IMF_IMTYPE_AVIJPEG 16
295 #define R_IMF_IMTYPE_PNG 17
296 #define R_IMF_IMTYPE_AVICODEC 18
297 #define R_IMF_IMTYPE_QUICKTIME 19
298 #define R_IMF_IMTYPE_BMP 20
299 #define R_IMF_IMTYPE_RADHDR 21
300 #define R_IMF_IMTYPE_TIFF 22
301 #define R_IMF_IMTYPE_OPENEXR 23
302 #define R_IMF_IMTYPE_FFMPEG 24
303 #define R_IMF_IMTYPE_FRAMESERVER 25
304 #define R_IMF_IMTYPE_CINEON 26
305 #define R_IMF_IMTYPE_DPX 27
306 #define R_IMF_IMTYPE_MULTILAYER 28
307 #define R_IMF_IMTYPE_DDS 29
308 #define R_IMF_IMTYPE_JP2 30
309 #define R_IMF_IMTYPE_H264 31
310 #define R_IMF_IMTYPE_XVID 32
311 #define R_IMF_IMTYPE_THEORA 33
313 #define R_IMF_IMTYPE_INVALID 255
315 /* ImageFormatData.flag */
316 #define R_IMF_FLAG_ZBUF (1<<0) /* was R_OPENEXR_ZBUF */
317 #define R_IMF_FLAG_PREVIEW_JPG (1<<1) /* was R_PREVIEW_JPG */
319 /* return values from BKE_imtype_valid_depths, note this is depts per channel */
320 #define R_IMF_CHAN_DEPTH_1 (1<<0) /* 1bits (unused) */
321 #define R_IMF_CHAN_DEPTH_8 (1<<1) /* 8bits (default) */
322 #define R_IMF_CHAN_DEPTH_12 (1<<2) /* 12bits (uncommon, jp2 supports) */
323 #define R_IMF_CHAN_DEPTH_16 (1<<3) /* 16bits (tiff, halff float exr) */
324 #define R_IMF_CHAN_DEPTH_24 (1<<4) /* 24bits (unused) */
325 #define R_IMF_CHAN_DEPTH_32 (1<<5) /* 32bits (full float exr) */
327 /* ImageFormatData.planes */
328 #define R_IMF_PLANES_RGB 24
329 #define R_IMF_PLANES_RGBA 32
330 #define R_IMF_PLANES_BW 8
332 /* ImageFormatData.exr_codec */
333 #define R_IMF_EXR_CODEC_NONE 0
334 #define R_IMF_EXR_CODEC_PXR24 1
335 #define R_IMF_EXR_CODEC_ZIP 2
336 #define R_IMF_EXR_CODEC_PIZ 3
337 #define R_IMF_EXR_CODEC_RLE 4
339 /* ImageFormatData.jp2_flag */
340 #define R_IMF_JP2_FLAG_YCC (1<<0) /* when disabled use RGB */ /* was R_JPEG2K_YCC */
341 #define R_IMF_JP2_FLAG_CINE_PRESET (1<<1) /* was R_JPEG2K_CINE_PRESET */
342 #define R_IMF_JP2_FLAG_CINE_48 (1<<2) /* was R_JPEG2K_CINE_48FPS */
344 /* ImageFormatData.cineon_flag */
345 #define R_IMF_CINEON_FLAG_LOG (1<<0) /* was R_CINEON_LOG */
347 /* *************************************************************** */
350 typedef struct RenderData {
351 struct ImageFormatData im_format;
353 struct AviCodecData *avicodecdata;
354 struct QuicktimeCodecData *qtcodecdata;
355 struct QuicktimeCodecSettings qtcodecsettings;
356 struct FFMpegCodecData ffcodecdata;
358 int cfra, sfra, efra; /* frames as in 'images' */
359 float subframe; /* subframe offset from cfra, in 0.0-1.0 */
360 int psfra, pefra; /* start+end frames of preview range */
362 int images, framapto;
365 float framelen, blurfac;
367 /** For UR edge rendering: give the edges this color */
368 float edgeR, edgeG, edgeB;
371 /* standalone player */ // XXX deprecated since 2.5
372 short fullscreen DNA_DEPRECATED, xplay DNA_DEPRECATED, yplay DNA_DEPRECATED;
373 short freqplay DNA_DEPRECATED;
374 /* standalone player */ // XXX deprecated since 2.5
375 short depth DNA_DEPRECATED, attrib DNA_DEPRECATED;
378 int frame_step; /* frames to jump during render/playback */
380 short stereomode DNA_DEPRECATED; /* standalone player stereo settings */ // XXX deprecated since 2.5
382 short dimensionspreset; /* for the dimensions presets menu */
384 short filtertype; /* filter is box, tent, gauss, mitch, etc */
386 short size, maximsize; /* size in %, max in Kb */
389 * The desired number of pixels in the x direction
393 * The desired number of pixels in the y direction
397 * The number of part to use in the x direction
401 * The number of part to use in the y direction
405 short planes DNA_DEPRECATED, imtype DNA_DEPRECATED, subimtype DNA_DEPRECATED, quality DNA_DEPRECATED; /*deprecated!*/
408 * Render to image editor, fullscreen or to new window.
413 * Flags for render settings. Use bit-masking to access the settings.
418 * Flags for render settings. Use bit-masking to access the settings.
423 * Flags for raytrace settings. Use bit-masking to access the settings.
425 int raytrace_options;
428 * Raytrace acceleration structure
430 short raytrace_structure;
434 /* octree resolution */
439 * What to do with the sky/background. Picks sky/premul/key
440 * blending for the background
445 * The number of samples to use per pixel.
449 short frs_sec, edgeint;
452 /* safety, border and display rect */
456 /* information on different layers to be rendered */
460 /* number of mblur samples */
464 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
471 * Value used to define filter size for all filter options */
475 /* color management settings - color profiles, gamma correction, etc */
478 /** post-production settings. deprecated, but here for upwards compat (initialized to 1) */
479 float postgamma, posthue, postsat;
481 /* Dither noise intensity */
482 float dither_intensity;
484 /* Bake Render options */
485 short bake_osa, bake_filter, bake_mode, bake_flag;
486 short bake_normal_space, bake_quad_split;
487 float bake_maxdist, bake_biasdist, bake_pad;
489 /* path to render output */
490 char pic[1024]; /* 1024 = FILE_MAX */
494 short stamp_font_id, pad3; /* select one of blenders bitmap fonts */
496 /* stamp info user data. */
497 char stamp_udata[768];
499 /* foreground/background color. */
503 /* sequencer options */
506 char seq_flag; /* flag use for sequence render/draw */
509 /* render simplify */
511 short simplify_subsurf;
512 short simplify_shadowsamples;
513 float simplify_particles;
514 float simplify_aosss;
517 short cineonwhite DNA_DEPRECATED, cineonblack DNA_DEPRECATED; /*deprecated*/
518 float cineongamma DNA_DEPRECATED; /*deprecated*/
521 short jp2_preset DNA_DEPRECATED, jp2_depth DNA_DEPRECATED; /*deprecated*/
524 /* Dome variables */ // XXX deprecated since 2.5
525 short domeres DNA_DEPRECATED, domemode DNA_DEPRECATED; // XXX deprecated since 2.5
526 short domeangle DNA_DEPRECATED, dometilt DNA_DEPRECATED; // XXX deprecated since 2.5
527 float domeresbuf DNA_DEPRECATED; // XXX deprecated since 2.5
529 struct Text *dometext DNA_DEPRECATED; // XXX deprecated since 2.5
531 /* Freestyle line thickness options */
532 int line_thickness_mode;
533 float unit_line_thickness; /* in pixels */
539 /* *************************************************************** */
540 /* Render Conversion/Simplfication Settings */
542 /* control render convert and shading engine */
543 typedef struct RenderProfile {
544 struct RenderProfile *next, *prev;
549 short shadbufsample_max;
552 float ao_error, pad2;
556 /* *************************************************************** */
557 /* Game Engine - Dome */
559 typedef struct GameDome {
563 struct Text *warptext;
566 #define DOME_FISHEYE 1
567 #define DOME_TRUNCATED_FRONT 2
568 #define DOME_TRUNCATED_REAR 3
569 #define DOME_ENVMAP 4
570 #define DOME_PANORAM_SPH 5
571 #define DOME_NUM_MODES 6
573 /* *************************************************************** */
576 typedef struct GameFraming {
578 char type, pad1, pad2, pad3;
581 #define SCE_GAMEFRAMING_BARS 0
582 #define SCE_GAMEFRAMING_EXTEND 1
583 #define SCE_GAMEFRAMING_SCALE 2
585 typedef struct RecastData {
595 float regionmergesize;
597 float detailsampledist;
598 float detailsamplemaxerror;
602 typedef struct GameData {
604 /* standalone player */
605 struct GameFraming framing;
606 short playerflag, xplay, yplay, freqplay;
607 short depth, attrib, rt1, rt2;
608 short aasamples, pad4[3];
610 /* stereo/dome mode */
611 struct GameDome dome;
612 short stereoflag, stereomode;
614 RecastData recastData;
617 /* physics (it was in world)*/
618 float gravity; /*Gravitation constant for the game world*/
621 * Radius of the activity bubble, in Manhattan length. Objects
622 * outside the box are activity-culled. */
623 float activityBoxRadius;
626 * bit 3: (gameengine): Activity culling is enabled.
627 * bit 5: (gameengine) : enable Bullet DBVT tree for view frustrum culling
631 short occlusionRes; /* resolution of occlusion Z buffer in pixel */
634 short ticrate, maxlogicstep, physubstep, maxphystep;
635 short obstacleSimulation, pad1;
639 #define STEREO_NOSTEREO 1
640 #define STEREO_ENABLED 2
641 #define STEREO_DOME 3
643 //#define STEREO_NOSTEREO 1
644 #define STEREO_QUADBUFFERED 2
645 #define STEREO_ABOVEBELOW 3
646 #define STEREO_INTERLACED 4
647 #define STEREO_ANAGLYPH 5
648 #define STEREO_SIDEBYSIDE 6
649 #define STEREO_VINTERLACE 7
650 //#define STEREO_DOME 8
654 #define WOPHY_BULLET 5
656 /* obstacleSimulation */
657 #define OBSTSIMULATION_NONE 0
658 #define OBSTSIMULATION_TOI_rays 1
659 #define OBSTSIMULATION_TOI_cells 2
662 #define GAME_RESTRICT_ANIM_UPDATES (1 << 0)
663 #define GAME_ENABLE_ALL_FRAMES (1 << 1)
664 #define GAME_SHOW_DEBUG_PROPS (1 << 2)
665 #define GAME_SHOW_FRAMERATE (1 << 3)
666 #define GAME_SHOW_PHYSICS (1 << 4)
667 #define GAME_DISPLAY_LISTS (1 << 5)
668 #define GAME_GLSL_NO_LIGHTS (1 << 6)
669 #define GAME_GLSL_NO_SHADERS (1 << 7)
670 #define GAME_GLSL_NO_SHADOWS (1 << 8)
671 #define GAME_GLSL_NO_RAMPS (1 << 9)
672 #define GAME_GLSL_NO_NODES (1 << 10)
673 #define GAME_GLSL_NO_EXTRA_TEX (1 << 11)
674 #define GAME_IGNORE_DEPRECATION_WARNINGS (1 << 12)
675 #define GAME_ENABLE_ANIMATION_RECORD (1 << 13)
676 #define GAME_SHOW_MOUSE (1 << 14)
677 #define GAME_GLSL_NO_COLOR_MANAGEMENT (1 << 15)
678 #define GAME_SHOW_OBSTACLE_SIMULATION (1 << 16)
679 /* Note: GameData.flag is now an int (max 32 flags). A short could only take 16 flags */
681 /* GameData.playerflag */
682 #define GAME_PLAYER_FULLSCREEN (1 << 0)
683 #define GAME_PLAYER_DESKTOP_RESOLUTION (1 << 1)
685 /* GameData.matmode */
686 #define GAME_MAT_TEXFACE 0
687 #define GAME_MAT_MULTITEX 1
688 #define GAME_MAT_GLSL 2
691 #define UV_SCULPT_LOCK_BORDERS 1
692 #define UV_SCULPT_ALL_ISLANDS 2
694 #define UV_SCULPT_TOOL_PINCH 1
695 #define UV_SCULPT_TOOL_RELAX 2
696 #define UV_SCULPT_TOOL_GRAB 3
698 #define UV_SCULPT_TOOL_RELAX_LAPLACIAN 1
699 #define UV_SCULPT_TOOL_RELAX_HC 2
703 typedef struct TimeMarker {
704 struct TimeMarker *next, *prev;
708 struct Object *camera;
711 /* *************************************************************** */
712 /* Paint Mode/Tool Data */
714 /* Paint Tool Base */
715 typedef struct Paint {
718 /* WM Paint cursor */
720 unsigned char paint_cursor_col[4];
725 /* ------------------------------------------- */
728 /* Texture/Image Editor */
729 typedef struct ImagePaintSettings {
734 /* for projection painting only */
735 short seam_bleed, normal_angle;
736 short screen_grab_size[2]; /* capture size for re-projection */
740 void *paintcursor; /* wm handle */
741 } ImagePaintSettings;
743 /* ------------------------------------------- */
746 /* Settings for a Particle Editing Brush */
747 typedef struct ParticleBrushData {
748 short size; /* common setting */
749 short step, invert, count; /* for specific brushes only */
754 /* Particle Edit Mode Settings */
755 typedef struct ParticleEditSettings {
761 ParticleBrushData brush[7]; /* 7 = PE_TOT_BRUSH */
762 void *paintcursor; /* runtime */
764 float emitterdist, rt;
769 int draw_step, fade_frames;
772 struct Object *object;
773 } ParticleEditSettings;
775 /* ------------------------------------------- */
779 typedef struct Sculpt {
782 /* For rotating around a pivot point */
783 //float pivot[3]; XXX not used?
786 /* Control tablet input */
787 //char tablet_size, tablet_strength; XXX not used?
790 // all this below is used to communicate with the cursor drawing routine
792 /* record movement of mouse so that rake can start at an intuitive angle */
793 float last_x, last_y;
798 float anchored_location[3];
799 float anchored_initial_mouse[2];
802 float pressure_value;
804 float special_rotation;
809 typedef struct UvSculpt {
812 /* ------------------------------------------- */
816 typedef struct VPaint {
820 int tot; /* allocation size of prev buffers */
821 unsigned int *vpaint_prev; /* previous mesh colors */
822 struct MDeformVert *wpaint_prev; /* previous vertex weights */
824 void *paintcursor; /* wm handle */
828 #define VP_COLINDEX 1
829 #define VP_AREA 2 /* vertex paint only */
833 // #define VP_MIRROR_X 32 // deprecated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X)
834 #define VP_ONLYVGROUP 128 /* weight paint only */
836 /* *************************************************************** */
837 /* Transform Orientations */
839 typedef struct TransformOrientation {
840 struct TransformOrientation *next, *prev;
841 char name[64]; /* MAX_NAME */
844 } TransformOrientation;
846 /* *************************************************************** */
847 /* Unified Paint Settings
850 /* These settings can override the equivalent fields in the active
851 * Brush for any paint mode; the flag field controls whether these
853 typedef struct UnifiedPaintSettings {
854 /* unified radius of brush in pixels */
857 /* unified radius of brush in Blender units */
858 float unprojected_radius;
860 /* unified strength of brush */
863 /* user preferences for sculpt and paint */
865 } UnifiedPaintSettings;
868 UNIFIED_PAINT_SIZE = (1<<0),
869 UNIFIED_PAINT_ALPHA = (1<<1),
871 /* only used if unified size is enabled, mirros the brush flags
872 * BRUSH_LOCK_SIZE and BRUSH_SIZE_PRESSURE */
873 UNIFIED_PAINT_BRUSH_LOCK_SIZE = (1<<2),
874 UNIFIED_PAINT_BRUSH_SIZE_PRESSURE = (1<<3),
876 /* only used if unified alpha is enabled, mirrors the brush flag
877 * BRUSH_ALPHA_PRESSURE */
878 UNIFIED_PAINT_BRUSH_ALPHA_PRESSURE = (1<<4)
879 } UnifiedPaintSettingsFlags;
881 /* *************************************************************** */
884 typedef struct ToolSettings {
885 VPaint *vpaint; /* vertex paint */
886 VPaint *wpaint; /* weight paint */
888 UvSculpt *uvsculpt; /* uv smooth */
893 /* Subdivide Settings */
896 /*Triangle to Quad conversion threshold*/
903 float extr_offs; /* extrude offset */
904 float doublimit; /* remove doubles limit */
905 float normalsize; /* size of normals */
908 /* Selection Mode for Mesh */
911 /* Primitive Settings */
916 /* Cylinder - Tube - Circle */
922 float uvcalc_cubesize;
925 short uvcalc_mapalign;
927 short uv_flag, uv_selectmode;
928 short uv_subsurf_level;
934 short autoik_chainlen;
936 /* Image Paint (8 byttse aligned please!) */
937 struct ImagePaintSettings imapaint;
939 /* Particle Editing */
940 struct ParticleEditSettings particle;
942 /* Transform Proportional Area of Effect */
943 float proportional_size;
945 /* Select Group Threshold */
951 /* Auto-Keying Mode */
952 short autokey_mode, autokey_flag; /* defines in DNA_userdef_types.h */
955 char multires_subdiv_type;
958 /* Skeleton generation */
959 short skgen_resolution;
960 float skgen_threshold_internal;
961 float skgen_threshold_external;
962 float skgen_length_ratio;
963 float skgen_length_limit;
964 float skgen_angle_limit;
965 float skgen_correlation_limit;
966 float skgen_symmetry_limit;
967 float skgen_retarget_angle_weight;
968 float skgen_retarget_length_weight;
969 float skgen_retarget_distance_weight;
972 char skgen_postpro_passes;
973 char skgen_subdivisions[3];
974 char skgen_multi_level;
976 /* Skeleton Sketching */
977 struct Object *skgen_template;
979 char bone_sketching_convert;
980 char skgen_subdivision_number;
981 char skgen_retarget_options;
982 char skgen_retarget_roll;
983 char skgen_side_string[8];
984 char skgen_num_string[8];
988 char edge_mode_live_unwrap;
992 short snap_flag, snap_target;
993 short proportional, prop_mode;
994 char proportional_objects; /* proportional edit, object mode */
997 char auto_normalize; /*auto normalizing mode in wpaint*/
998 char multipaint; /* paint multiple bones in wpaint */
1002 int uv_sculpt_settings;
1004 int uv_relax_method;
1005 /* XXX: these sculpt_paint_* fields are deprecated, use the
1006 * unified_paint_settings field instead! */
1007 short sculpt_paint_settings DNA_DEPRECATED; short pad1;
1008 int sculpt_paint_unified_size DNA_DEPRECATED;
1009 float sculpt_paint_unified_unprojected_radius DNA_DEPRECATED;
1010 float sculpt_paint_unified_alpha DNA_DEPRECATED;
1012 /* Unified Paint Settings */
1013 struct UnifiedPaintSettings unified_paint_settings;
1016 /* *************************************************************** */
1017 /* Assorted Scene Data */
1019 /* ------------------------------------------- */
1020 /* Stats (show in Info header) */
1022 typedef struct bStats {
1023 /* scene totals for visible layers */
1024 int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
1025 int totvert, totface;
1028 /* ------------------------------------------- */
1031 typedef struct UnitSettings {
1032 /* Display/Editing unit options for each scene */
1033 float scale_length; /* maybe have other unit conversions? */
1034 char system; /* imperial, metric etc */
1035 char system_rotation; /* not implemented as a propper unit system yet */
1039 /* ------------------------------------------- */
1040 /* Global/Common Physics Settings */
1042 typedef struct PhysicsSettings {
1044 int flag, quick_cache_step, rt;
1047 /* *************************************************************** */
1048 /* Scene ID-Block */
1050 typedef struct Scene {
1052 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
1054 struct Object *camera;
1055 struct World *world;
1060 struct Base *basact; /* active base */
1061 struct Object *obedit; /* name replaces old G.obedit */
1063 float cursor[3]; /* 3d cursor location */
1064 float twcent[3]; /* center for transform widget */
1065 float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
1067 unsigned int lay; /* bitflags for layer visibility */
1068 int layact; /* active layer */
1069 unsigned int lay_updated; /* runtime flag, has layer ever been updated since load? */
1071 short flag; /* various settings */
1075 struct bNodeTree *nodetree;
1077 struct Editing *ed; /* sequence editor data is allocated here */
1079 struct ToolSettings *toolsettings; /* default allocated now */
1080 struct SceneStats *stats; /* default allocated now */
1082 /* migrate or replace? depends on some internal things... */
1083 /* no, is on the right place (ton) */
1084 struct RenderData r;
1085 struct AudioData audio;
1088 ListBase transform_spaces;
1091 void *sound_scene_handle;
1092 void *sound_scrub_handle;
1093 void *speaker_handles;
1095 void *fps_info; /* (runtime) info/cache used for presenting playback framerate info to the user */
1097 /* none of the dependency graph vars is mean to be saved */
1098 struct DagForest *theDag;
1099 short dagisvalid, dagflags;
1100 short recalc; /* recalc = counterpart of ob->recalc */
1105 /* User-Defined KeyingSets */
1106 int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */
1107 ListBase keyingsets; /* KeyingSets for this scene */
1110 struct GameFraming framing DNA_DEPRECATED; // XXX deprecated since 2.5
1114 struct UnitSettings unit;
1117 struct bGPdata *gpd;
1119 /* Physics simulation settings */
1120 struct PhysicsSettings physics_settings;
1122 /* Movie Tracking */
1123 struct MovieClip *clip; /* active movie clip */
1125 uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by object_handle_update() */
1126 uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */
1130 /* **************** RENDERDATA ********************* */
1133 /* use preview range */
1134 #define SCER_PRV_RANGE (1<<0)
1136 /* mode (int now) */
1137 #define R_OSA 0x0001
1138 #define R_SHADOW 0x0002
1139 #define R_GAMMA 0x0004
1140 #define R_ORTHO 0x0008
1141 #define R_ENVMAP 0x0010
1142 #define R_EDGE 0x0020
1143 #define R_FIELDS 0x0040
1144 #define R_FIELDSTILL 0x0080
1145 #define R_RADIO 0x0100
1146 #define R_BORDER 0x0200
1147 #define R_PANORAMA 0x0400 /* deprecated as scene option, still used in renderer */
1148 #define R_CROP 0x0800
1149 /*#define R_COSMO 0x1000 deprecated */
1150 #define R_ODDFIELD 0x2000
1151 #define R_MBLUR 0x4000
1152 /* unified was here */
1153 #define R_RAYTRACE 0x10000
1154 /* R_GAUSS is obsolete, but used to retrieve setting from old files */
1155 #define R_GAUSS 0x20000
1156 /* fbuf obsolete... */
1157 /*#define R_FBUF 0x40000*/
1158 /* threads obsolete... is there for old files, now use for autodetect threads */
1159 #define R_THREADS 0x80000
1160 /* Use the same flag for autothreads */
1161 #define R_FIXED_THREADS 0x80000
1163 #define R_SPEED 0x100000
1164 #define R_SSS 0x200000
1165 #define R_NO_OVERWRITE 0x400000 /* skip existing files */
1166 #define R_TOUCH 0x800000 /* touch files before rendering */
1167 #define R_SIMPLIFY 0x1000000
1168 #define R_EDGE_FRS 0x2000000 /* R_EDGE for Freestyle */
1171 #define R_SEQ_GL_PREV 1
1172 #define R_SEQ_GL_REND 2
1176 #define R_OUTPUT_SCREEN 0
1177 #define R_OUTPUT_AREA 1
1178 #define R_OUTPUT_WINDOW 2
1179 #define R_OUTPUT_NONE 3
1180 /*#define R_OUTPUT_FORKED 4*/
1183 #define R_FILTER_BOX 0
1184 #define R_FILTER_TENT 1
1185 #define R_FILTER_QUAD 2
1186 #define R_FILTER_CUBIC 3
1187 #define R_FILTER_CATROM 4
1188 #define R_FILTER_GAUSS 5
1189 #define R_FILTER_MITCH 6
1190 #define R_FILTER_FAST_GAUSS 7 /* note, this is only used for nodes at the moment */
1192 /* raytrace structure */
1193 #define R_RAYSTRUCTURE_AUTO 0
1194 #define R_RAYSTRUCTURE_OCTREE 1
1195 #define R_RAYSTRUCTURE_BLIBVH 2
1196 #define R_RAYSTRUCTURE_VBVH 3
1197 #define R_RAYSTRUCTURE_SIMD_SVBVH 4 /* needs SIMD */
1198 #define R_RAYSTRUCTURE_SIMD_QBVH 5 /* needs SIMD */
1200 /* raytrace_options */
1201 #define R_RAYTRACE_USE_LOCAL_COORDS 0x0001
1202 #define R_RAYTRACE_USE_INSTANCES 0x0002
1204 /* scemode (int now) */
1205 #define R_DOSEQ 0x0001
1206 #define R_BG_RENDER 0x0002
1207 /* passepartout is camera option now, keep this for backward compatibility */
1208 #define R_PASSEPARTOUT 0x0004
1209 #define R_PREVIEWBUTS 0x0008
1210 #define R_EXTENSION 0x0010
1211 #define R_MATNODE_PREVIEW 0x0020
1212 #define R_DOCOMP 0x0040
1213 #define R_COMP_CROP 0x0080
1214 #define R_FREE_IMAGE 0x0100
1215 #define R_SINGLE_LAYER 0x0200
1216 #define R_EXR_TILE_FILE 0x0400
1217 #define R_COMP_FREE 0x0800
1218 #define R_NO_IMAGE_LOAD 0x1000
1219 #define R_NO_TEX 0x2000
1220 #define R_NO_FRAME_UPDATE 0x4000
1221 #define R_FULL_SAMPLE 0x8000
1222 /* #define R_DEPRECATED 0x10000 */
1223 /* #define R_RECURS_PROTECTION 0x20000 */
1224 #define R_TEXNODE_PREVIEW 0x40000
1227 #define R_STAMP_TIME 0x0001
1228 #define R_STAMP_FRAME 0x0002
1229 #define R_STAMP_DATE 0x0004
1230 #define R_STAMP_CAMERA 0x0008
1231 #define R_STAMP_SCENE 0x0010
1232 #define R_STAMP_NOTE 0x0020
1233 #define R_STAMP_DRAW 0x0040 /* draw in the image */
1234 #define R_STAMP_MARKER 0x0080
1235 #define R_STAMP_FILENAME 0x0100
1236 #define R_STAMP_SEQSTRIP 0x0200
1237 #define R_STAMP_RENDERTIME 0x0400
1238 #define R_STAMP_CAMERALENS 0x0800
1239 #define R_STAMP_ALL (R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_CAMERA|R_STAMP_SCENE| \
1240 R_STAMP_NOTE|R_STAMP_MARKER|R_STAMP_FILENAME|R_STAMP_SEQSTRIP| \
1241 R_STAMP_RENDERTIME|R_STAMP_CAMERALENS)
1245 #define R_ALPHAPREMUL 1
1246 #define R_ALPHAKEY 2
1248 /* color_mgt_flag */
1249 #define R_COLOR_MANAGEMENT (1 << 0)
1250 #define R_COLOR_MANAGEMENT_PREDIVIDE (1 << 1)
1252 /* subimtype, flag options for imtype */
1253 #define R_OPENEXR_HALF 1 /*deprecated*/
1254 #define R_OPENEXR_ZBUF 2 /*deprecated*/
1255 #define R_PREVIEW_JPG 4 /*deprecated*/
1256 #define R_CINEON_LOG 8 /*deprecated*/
1257 #define R_TIFF_16BIT 16 /*deprecated*/
1259 #define R_JPEG2K_12BIT 32 /* Jpeg2000 */ /*deprecated*/
1260 #define R_JPEG2K_16BIT 64 /*deprecated*/
1261 #define R_JPEG2K_YCC 128 /* when disabled use RGB */ /*deprecated*/
1262 #define R_JPEG2K_CINE_PRESET 256 /*deprecated*/
1263 #define R_JPEG2K_CINE_48FPS 512 /*deprecated*/
1265 /* bake_mode: same as RE_BAKE_xxx defines */
1267 #define R_BAKE_CLEAR 1
1268 #define R_BAKE_OSA 2
1269 #define R_BAKE_TO_ACTIVE 4
1270 #define R_BAKE_NORMALIZE 8
1271 #define R_BAKE_MULTIRES 16
1272 #define R_BAKE_LORES_MESH 32
1274 /* bake_normal_space */
1275 #define R_BAKE_SPACE_CAMERA 0
1276 #define R_BAKE_SPACE_WORLD 1
1277 #define R_BAKE_SPACE_OBJECT 2
1278 #define R_BAKE_SPACE_TANGENT 3
1281 #define R_SIMPLE_NO_TRIANGULATE 1
1283 /* line_thickness_mode */
1284 #define R_LINE_THICKNESS_ABSOLUTE 1
1285 #define R_LINE_THICKNESS_RELATIVE 2
1287 /* sequencer seq_prev_type seq_rend_type */
1290 /* **************** SCENE ********************* */
1292 /* for general use */
1293 #define MAXFRAME 300000
1294 #define MAXFRAMEF 300000.0f
1297 #define MINFRAMEF 0.0f
1299 /* (minimum frame number for current-frame) */
1300 #define MINAFRAME -300000
1301 #define MINAFRAMEF -300000.0f
1303 /* depricate this! */
1304 #define TESTBASE(v3d, base) ( \
1305 ((base)->flag & SELECT) && \
1306 ((base)->lay & v3d->lay) && \
1307 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1308 #define TESTBASELIB(v3d, base) ( \
1309 ((base)->flag & SELECT) && \
1310 ((base)->lay & v3d->lay) && \
1311 ((base)->object->id.lib==NULL) && \
1312 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1313 #define TESTBASELIB_BGMODE(v3d, scene, base) ( \
1314 ((base)->flag & SELECT) && \
1315 ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \
1316 ((base)->object->id.lib==NULL) && \
1317 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1318 #define BASE_EDITABLE_BGMODE(v3d, scene, base) ( \
1319 ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \
1320 ((base)->object->id.lib==NULL) && \
1321 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
1322 #define BASE_SELECTABLE(v3d, base) ( \
1323 (base->lay & v3d->lay) && \
1324 (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0 )
1325 #define BASE_VISIBLE(v3d, base) ( \
1326 (base->lay & v3d->lay) && \
1327 (base->object->restrictflag & OB_RESTRICT_VIEW)==0 )
1329 #define FIRSTBASE scene->base.first
1330 #define LASTBASE scene->base.last
1331 #define BASACT (scene->basact)
1332 #define OBACT (BASACT? BASACT->object: NULL)
1334 #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL)
1335 #define V3D_CAMERA_SCENE(scene, v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : (scene)->camera)
1337 #define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
1338 #define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
1339 #define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
1340 #define CFRA (scene->r.cfra)
1341 #define SUBFRA (scene->r.subframe)
1342 #define SFRA (scene->r.sfra)
1343 #define EFRA (scene->r.efra)
1344 #define PRVRANGEON (scene->r.flag & SCER_PRV_RANGE)
1345 #define PSFRA ((PRVRANGEON)? (scene->r.psfra): (scene->r.sfra))
1346 #define PEFRA ((PRVRANGEON)? (scene->r.pefra): (scene->r.efra))
1347 #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec)
1348 #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base)
1349 #define FPS (((double) scene->r.frs_sec) / (double)scene->r.frs_sec_base)
1351 #define RAD_PHASE_PATCHES 1
1352 #define RAD_PHASE_FACES 2
1354 /* base->flag is in DNA_object_types.h */
1356 /* toolsettings->snap_flag */
1358 #define SCE_SNAP_ROTATE 2
1359 #define SCE_SNAP_PEEL_OBJECT 4
1360 #define SCE_SNAP_PROJECT 8
1361 #define SCE_SNAP_NO_SELF 16
1362 /* toolsettings->snap_target */
1363 #define SCE_SNAP_TARGET_CLOSEST 0
1364 #define SCE_SNAP_TARGET_CENTER 1
1365 #define SCE_SNAP_TARGET_MEDIAN 2
1366 #define SCE_SNAP_TARGET_ACTIVE 3
1367 /* toolsettings->snap_mode */
1368 #define SCE_SNAP_MODE_INCREMENT 0
1369 #define SCE_SNAP_MODE_VERTEX 1
1370 #define SCE_SNAP_MODE_EDGE 2
1371 #define SCE_SNAP_MODE_FACE 3
1372 #define SCE_SNAP_MODE_VOLUME 4
1374 /* toolsettings->selectmode */
1375 #define SCE_SELECT_VERTEX 1 /* for mesh */
1376 #define SCE_SELECT_EDGE 2
1377 #define SCE_SELECT_FACE 4
1379 /* toolsettings->particle.selectmode for particles */
1380 #define SCE_SELECT_PATH 1
1381 #define SCE_SELECT_POINT 2
1382 #define SCE_SELECT_END 4
1384 /* sce->recalc (now in use by previewrender) */
1385 #define SCE_PRV_CHANGED 1
1387 /* toolsettings->prop_mode (proportional falloff) */
1388 #define PROP_SMOOTH 0
1389 #define PROP_SPHERE 1
1391 #define PROP_SHARP 3
1393 #define PROP_CONST 5
1394 #define PROP_RANDOM 6
1395 #define PROP_MODE_MAX 7
1397 /* toolsettings->proportional */
1398 #define PROP_EDIT_OFF 0
1399 #define PROP_EDIT_ON 1
1400 #define PROP_EDIT_CONNECTED 2
1403 #define SCE_DS_SELECTED (1<<0)
1404 #define SCE_DS_COLLAPSED (1<<1)
1405 #define SCE_NLA_EDIT_ON (1<<2)
1406 #define SCE_FRAME_DROP (1<<3)
1409 /* return flag next_object function */
1416 #define AUDIO_MUTE (1<<0)
1417 #define AUDIO_SYNC (1<<1)
1418 #define AUDIO_SCRUB (1<<2)
1419 #define AUDIO_VOLUME_ANIMATED (1<<3)
1421 #define FFMPEG_MULTIPLEX_AUDIO 1 /* deprecated, you can choose none as audiocodec now */
1422 #define FFMPEG_AUTOSPLIT_OUTPUT 2
1423 #define FFMPEG_LOSSLESS_OUTPUT 4
1427 PAINT_SHOW_BRUSH = (1<<0),
1428 PAINT_FAST_NAVIGATE = (1<<1),
1429 PAINT_SHOW_BRUSH_ON_SURFACE = (1<<2),
1433 /* These can eventually be moved to paint flags? */
1434 typedef enum SculptFlags {
1435 SCULPT_SYMM_X = (1<<0),
1436 SCULPT_SYMM_Y = (1<<1),
1437 SCULPT_SYMM_Z = (1<<2),
1438 SCULPT_LOCK_X = (1<<3),
1439 SCULPT_LOCK_Y = (1<<4),
1440 SCULPT_LOCK_Z = (1<<5),
1441 SCULPT_SYMMETRY_FEATHER = (1<<6),
1442 SCULPT_USE_OPENMP = (1<<7),
1443 SCULPT_ONLY_DEFORM = (1<<8),
1446 /* ImagePaintSettings.flag */
1447 #define IMAGEPAINT_DRAWING 1
1448 // #define IMAGEPAINT_DRAW_TOOL 2 // deprecated
1449 // #define IMAGEPAINT_DRAW_TOOL_DRAWING 4 // deprecated
1451 /* projection painting only */
1452 #define IMAGEPAINT_PROJECT_DISABLE 8 /* Non projection 3D painting */
1453 #define IMAGEPAINT_PROJECT_XRAY 16
1454 #define IMAGEPAINT_PROJECT_BACKFACE 32
1455 #define IMAGEPAINT_PROJECT_FLAT 64
1456 #define IMAGEPAINT_PROJECT_LAYER_CLONE 128
1457 #define IMAGEPAINT_PROJECT_LAYER_STENCIL 256
1458 #define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV 512
1460 /* toolsettings->uvcalc_flag */
1461 #define UVCALC_FILLHOLES 1
1462 #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */
1463 #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */
1464 #define UVCALC_USESUBSURF 8 /* Use mesh data after subsurf to compute UVs*/
1466 /* toolsettings->uv_flag */
1467 #define UV_SYNC_SELECTION 1
1468 #define UV_SHOW_SAME_IMAGE 2
1470 /* toolsettings->uv_selectmode */
1471 #define UV_SELECT_VERTEX 1
1472 #define UV_SELECT_EDGE 2
1473 #define UV_SELECT_FACE 4
1474 #define UV_SELECT_ISLAND 8
1476 /* toolsettings->edge_mode */
1477 #define EDGE_MODE_SELECT 0
1478 #define EDGE_MODE_TAG_SEAM 1
1479 #define EDGE_MODE_TAG_SHARP 2
1480 #define EDGE_MODE_TAG_CREASE 3
1481 #define EDGE_MODE_TAG_BEVEL 4
1482 #define EDGE_MODE_TAG_FREESTYLE 5
1484 /* toolsettings->gpencil_flags */
1485 #define GP_TOOL_FLAG_PAINTSESSIONS_ON (1<<0)
1487 /* toolsettings->particle flag */
1488 #define PE_KEEP_LENGTHS 1
1489 #define PE_LOCK_FIRST 2
1490 #define PE_DEFLECT_EMITTER 4
1491 #define PE_INTERPOLATE_ADDED 8
1492 #define PE_DRAW_PART 16
1493 /* #define PE_X_MIRROR 64 */ /* deprecated */
1494 #define PE_FADE_TIME 128
1495 #define PE_AUTO_VELOCITY 256
1497 /* toolsetting->particle brushtype */
1498 #define PE_BRUSH_NONE -1
1499 #define PE_BRUSH_COMB 0
1500 #define PE_BRUSH_CUT 1
1501 #define PE_BRUSH_LENGTH 2
1502 #define PE_BRUSH_PUFF 3
1503 #define PE_BRUSH_ADD 4
1504 #define PE_BRUSH_SMOOTH 5
1505 #define PE_BRUSH_WEIGHT 6
1507 /* this must equal ParticleEditSettings.brush array size */
1508 #define PE_TOT_BRUSH 6
1510 /* ParticleBrushData->flag */
1511 #define PE_BRUSH_DATA_PUFF_VOLUME 1
1513 /* tooksettings->particle edittype */
1514 #define PE_TYPE_PARTICLES 0
1515 #define PE_TYPE_SOFTBODY 1
1516 #define PE_TYPE_CLOTH 2
1518 /* toolsettings->skgen_options */
1519 #define SKGEN_FILTER_INTERNAL (1 << 0)
1520 #define SKGEN_FILTER_EXTERNAL (1 << 1)
1521 #define SKGEN_SYMMETRY (1 << 2)
1522 #define SKGEN_CUT_LENGTH (1 << 3)
1523 #define SKGEN_CUT_ANGLE (1 << 4)
1524 #define SKGEN_CUT_CORRELATION (1 << 5)
1525 #define SKGEN_HARMONIC (1 << 6)
1526 #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
1527 #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
1528 #define SKGEN_FILTER_SMART (1 << 9)
1529 #define SKGEN_DISP_LENGTH (1 << 10)
1530 #define SKGEN_DISP_WEIGHT (1 << 11)
1531 #define SKGEN_DISP_ORIG (1 << 12)
1532 #define SKGEN_DISP_EMBED (1 << 13)
1533 #define SKGEN_DISP_INDEX (1 << 14)
1535 #define SKGEN_SUB_LENGTH 0
1536 #define SKGEN_SUB_ANGLE 1
1537 #define SKGEN_SUB_CORRELATION 2
1538 #define SKGEN_SUB_TOTAL 3
1540 /* toolsettings->skgen_postpro */
1541 #define SKGEN_SMOOTH 0
1542 #define SKGEN_AVERAGE 1
1543 #define SKGEN_SHARPEN 2
1545 /* toolsettings->bone_sketching */
1546 #define BONE_SKETCHING 1
1547 #define BONE_SKETCHING_QUICK 2
1548 #define BONE_SKETCHING_ADJUST 4
1550 /* toolsettings->bone_sketching_convert */
1551 #define SK_CONVERT_CUT_FIXED 0
1552 #define SK_CONVERT_CUT_LENGTH 1
1553 #define SK_CONVERT_CUT_ADAPTATIVE 2
1554 #define SK_CONVERT_RETARGET 3
1556 /* toolsettings->skgen_retarget_options */
1557 #define SK_RETARGET_AUTONAME 1
1559 /* toolsettings->skgen_retarget_roll */
1560 #define SK_RETARGET_ROLL_NONE 0
1561 #define SK_RETARGET_ROLL_VIEW 1
1562 #define SK_RETARGET_ROLL_JOINT 2
1564 /* physics_settings->flag */
1565 #define PHYS_GLOBAL_GRAVITY 1
1569 /* UnitSettings->system */
1570 #define USER_UNIT_NONE 0
1571 #define USER_UNIT_METRIC 1
1572 #define USER_UNIT_IMPERIAL 2
1573 /* UnitSettings->flag */
1574 #define USER_UNIT_OPT_SPLIT 1
1575 #define USER_UNIT_ROT_RADIANS 2