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"
62 /* ************************************************************* */
65 /* Base - Wrapper for referencing Objects in a Scene */
67 struct Base *next, *prev;
68 unsigned int lay, selcol;
71 struct Object *object;
74 /* ************************************************************* */
75 /* Output Format Data */
77 typedef struct AviCodecData {
78 void *lpFormat; /* save format */
79 void *lpParms; /* compressor options */
80 unsigned int cbFormat; /* size of lpFormat buffer */
81 unsigned int cbParms; /* size of lpParms buffer */
83 unsigned int fccType; /* stream type, for consistency */
84 unsigned int fccHandler; /* compressor */
85 unsigned int dwKeyFrameEvery; /* keyframe rate */
86 unsigned int dwQuality; /* compress quality 0-10,000 */
87 unsigned int dwBytesPerSecond; /* bytes per second */
88 unsigned int dwFlags; /* flags... see below */
89 unsigned int dwInterleaveEvery; /* for non-video streams only */
92 char avicodecname[128];
95 typedef struct QuicktimeCodecData {
96 /*Old quicktime implementation compatibility fields, read only in 2.5 - deprecated*/
97 void *cdParms; /* codec/compressor options */
98 void *pad; /* padding */
100 unsigned int cdSize; /* size of cdParms buffer */
101 unsigned int pad2; /* padding */
103 char qtcodecname[128];
104 } QuicktimeCodecData;
106 typedef struct QuicktimeCodecSettings {
107 /* Codec settings detailed for 2.5 implementation*/
108 int codecType; /* Types defined in quicktime_export.h */
109 int codecSpatialQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
111 /* Settings not available in current QTKit API */
115 int codecTemporalQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
116 int minSpatialQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
117 int minTemporalQuality; /* in 0-100 scale, to be translated in 0-1024 for qt use */
119 int bitRate; /* bitrate in bps */
121 /* Audio Codec settings */
129 } QuicktimeCodecSettings;
131 typedef struct FFMpegCodecData {
149 IDProperty *properties;
152 /* ************************************************************* */
155 typedef struct AudioData {
156 int mixrate; // 2.5: now in FFMpegCodecData: audio_mixrate
157 float main; // 2.5: now in FFMpegCodecData: audio_volume
158 float speed_of_sound;
159 float doppler_factor;
167 /* *************************************************************** */
171 typedef struct SceneRenderLayer {
172 struct SceneRenderLayer *next, *prev;
174 char name[64]; /* MAX_NAME */
176 struct Material *mat_override;
177 struct Group *light_override;
179 unsigned int lay; /* scene->lay itself has priority over this */
180 unsigned int lay_zmask; /* has to be after lay, this is for Z-masking */
185 int passflag; /* pass_xor has to be after passflag */
190 #define SCE_LAY_SOLID 1
191 #define SCE_LAY_ZTRA 2
192 #define SCE_LAY_HALO 4
193 #define SCE_LAY_EDGE 8
194 #define SCE_LAY_SKY 16
195 #define SCE_LAY_STRAND 32
196 /* flags between 32 and 0x8000 are set to 1 already, for future options */
198 #define SCE_LAY_ALL_Z 0x8000
199 #define SCE_LAY_XOR 0x10000
200 #define SCE_LAY_DISABLE 0x20000
201 #define SCE_LAY_ZMASK 0x40000
202 #define SCE_LAY_NEG_ZMASK 0x80000
205 #define SCE_PASS_COMBINED (1<<0)
206 #define SCE_PASS_Z (1<<1)
207 #define SCE_PASS_RGBA (1<<2)
208 #define SCE_PASS_DIFFUSE (1<<3)
209 #define SCE_PASS_SPEC (1<<4)
210 #define SCE_PASS_SHADOW (1<<5)
211 #define SCE_PASS_AO (1<<6)
212 #define SCE_PASS_REFLECT (1<<7)
213 #define SCE_PASS_NORMAL (1<<8)
214 #define SCE_PASS_VECTOR (1<<9)
215 #define SCE_PASS_REFRACT (1<<10)
216 #define SCE_PASS_INDEXOB (1<<11)
217 #define SCE_PASS_UV (1<<12)
218 #define SCE_PASS_INDIRECT (1<<13)
219 #define SCE_PASS_MIST (1<<14)
220 #define SCE_PASS_RAYHITS (1<<15)
221 #define SCE_PASS_EMIT (1<<16)
222 #define SCE_PASS_ENVIRONMENT (1<<17)
223 #define SCE_PASS_INDEXMA (1<<18)
225 /* note, srl->passflag is treestore element 'nr' in outliner, short still... */
227 /* *************************************************************** */
229 /* Generic image format settings,
230 * this is used for NodeImageFile and IMAGE_OT_save_as operator too.
232 * note: its a bit strange that even though this is an image format struct
233 * the imtype can still be used to select video formats.
234 * RNA ensures these enum's are only selectable for render output.
236 typedef struct ImageFormatData {
237 char imtype; /* R_IMF_IMTYPE_PNG, R_... */
238 /* note, video types should only ever be set from this
239 * structure when used from RenderData */
240 char depth; /* bits per channel, R_IMF_CHAN_DEPTH_8 -> 32,
241 * not a flag, only set 1 at a time */
243 char planes ; /* - R_IMF_PLANES_BW, R_IMF_PLANES_RGB, R_IMF_PLANES_RGBA */
244 char flag; /* generic options for all image types, alpha zbuffer */
246 char quality; /* (0 - 100), eg: jpeg quality */
247 char compress; /* (0 - 100), eg: png compression */
250 /* --- format specific --- */
257 short cineon_white, cineon_black;
268 /* ImageFormatData.imtype */
269 #define R_IMF_IMTYPE_TARGA 0
270 #define R_IMF_IMTYPE_IRIS 1
271 /* #define R_HAMX 2 */ /* hamx is nomore */
272 /* #define R_FTYPE 3 */ /* ftype is nomore */
273 #define R_IMF_IMTYPE_JPEG90 4
274 /* #define R_MOVIE 5 */ /* movie is nomore */
275 #define R_IMF_IMTYPE_IRIZ 7
276 #define R_IMF_IMTYPE_RAWTGA 14
277 #define R_IMF_IMTYPE_AVIRAW 15
278 #define R_IMF_IMTYPE_AVIJPEG 16
279 #define R_IMF_IMTYPE_PNG 17
280 #define R_IMF_IMTYPE_AVICODEC 18
281 #define R_IMF_IMTYPE_QUICKTIME 19
282 #define R_IMF_IMTYPE_BMP 20
283 #define R_IMF_IMTYPE_RADHDR 21
284 #define R_IMF_IMTYPE_TIFF 22
285 #define R_IMF_IMTYPE_OPENEXR 23
286 #define R_IMF_IMTYPE_FFMPEG 24
287 #define R_IMF_IMTYPE_FRAMESERVER 25
288 #define R_IMF_IMTYPE_CINEON 26
289 #define R_IMF_IMTYPE_DPX 27
290 #define R_IMF_IMTYPE_MULTILAYER 28
291 #define R_IMF_IMTYPE_DDS 29
292 #define R_IMF_IMTYPE_JP2 30
293 #define R_IMF_IMTYPE_H264 31
294 #define R_IMF_IMTYPE_XVID 32
295 #define R_IMF_IMTYPE_THEORA 33
297 #define R_IMF_IMTYPE_INVALID 255
299 /* ImageFormatData.flag */
300 #define R_IMF_FLAG_ZBUF (1<<0) /* was R_OPENEXR_ZBUF */
301 #define R_IMF_FLAG_PREVIEW_JPG (1<<1) /* was R_PREVIEW_JPG */
303 /* return values from BKE_imtype_valid_depths, note this is depts per channel */
304 #define R_IMF_CHAN_DEPTH_1 (1<<0) /* 1bits (unused) */
305 #define R_IMF_CHAN_DEPTH_8 (1<<1) /* 8bits (default) */
306 #define R_IMF_CHAN_DEPTH_12 (1<<2) /* 12bits (uncommon, jp2 supports) */
307 #define R_IMF_CHAN_DEPTH_16 (1<<3) /* 16bits (tiff, halff float exr) */
308 #define R_IMF_CHAN_DEPTH_24 (1<<4) /* 24bits (unused) */
309 #define R_IMF_CHAN_DEPTH_32 (1<<5) /* 32bits (full float exr) */
311 /* ImageFormatData.planes */
312 #define R_IMF_PLANES_RGB 24
313 #define R_IMF_PLANES_RGBA 32
314 #define R_IMF_PLANES_BW 8
316 /* ImageFormatData.exr_codec */
317 #define R_IMF_EXR_CODEC_NONE 0
318 #define R_IMF_EXR_CODEC_PXR24 1
319 #define R_IMF_EXR_CODEC_ZIP 2
320 #define R_IMF_EXR_CODEC_PIZ 3
321 #define R_IMF_EXR_CODEC_RLE 4
323 /* ImageFormatData.jp2_flag */
324 #define R_IMF_JP2_FLAG_YCC (1<<0) /* when disabled use RGB */ /* was R_JPEG2K_YCC */
325 #define R_IMF_JP2_FLAG_CINE_PRESET (1<<1) /* was R_JPEG2K_CINE_PRESET */
326 #define R_IMF_JP2_FLAG_CINE_48 (1<<2) /* was R_JPEG2K_CINE_48FPS */
328 /* ImageFormatData.cineon_flag */
329 #define R_IMF_CINEON_FLAG_LOG (1<<0) /* was R_CINEON_LOG */
331 /* *************************************************************** */
334 typedef struct RenderData {
335 struct ImageFormatData im_format;
337 struct AviCodecData *avicodecdata;
338 struct QuicktimeCodecData *qtcodecdata;
339 struct QuicktimeCodecSettings qtcodecsettings;
340 struct FFMpegCodecData ffcodecdata;
342 int cfra, sfra, efra; /* frames as in 'images' */
343 float subframe; /* subframe offset from cfra, in 0.0-1.0 */
344 int psfra, pefra; /* start+end frames of preview range */
346 int images, framapto;
349 float framelen, blurfac;
351 /** For UR edge rendering: give the edges this color */
352 float edgeR, edgeG, edgeB;
355 /* standalone player */ // XXX deprecated since 2.5
356 short fullscreen DNA_DEPRECATED, xplay DNA_DEPRECATED, yplay DNA_DEPRECATED;
357 short freqplay DNA_DEPRECATED;
358 /* standalone player */ // XXX deprecated since 2.5
359 short depth DNA_DEPRECATED, attrib DNA_DEPRECATED;
362 int frame_step; /* frames to jump during render/playback */
364 short stereomode DNA_DEPRECATED; /* standalone player stereo settings */ // XXX deprecated since 2.5
366 short dimensionspreset; /* for the dimensions presets menu */
368 short filtertype; /* filter is box, tent, gauss, mitch, etc */
370 short size, maximsize; /* size in %, max in Kb */
373 * The desired number of pixels in the x direction
377 * The desired number of pixels in the y direction
381 * The number of part to use in the x direction
385 * The number of part to use in the y direction
389 short planes DNA_DEPRECATED, imtype DNA_DEPRECATED, subimtype DNA_DEPRECATED, quality DNA_DEPRECATED; /*deprecated!*/
392 * Render to image editor, fullscreen or to new window.
397 * Flags for render settings. Use bit-masking to access the settings.
402 * Flags for render settings. Use bit-masking to access the settings.
407 * Flags for raytrace settings. Use bit-masking to access the settings.
409 int raytrace_options;
412 * Raytrace acceleration structure
414 short raytrace_structure;
418 /* octree resolution */
423 * What to do with the sky/background. Picks sky/premul/key
424 * blending for the background
429 * The number of samples to use per pixel.
433 short frs_sec, edgeint;
436 /* safety, border and display rect */
440 /* information on different layers to be rendered */
444 /* number of mblur samples */
448 * Adjustment factors for the aspect ratio in the x direction, was a short in 2.45
455 * Value used to define filter size for all filter options */
459 /* color management settings - color profiles, gamma correction, etc */
462 /** post-production settings. deprecated, but here for upwards compat (initialized to 1) */
463 float postgamma, posthue, postsat;
465 /* Dither noise intensity */
466 float dither_intensity;
468 /* Bake Render options */
469 short bake_osa, bake_filter, bake_mode, bake_flag;
470 short bake_normal_space, bake_quad_split;
471 float bake_maxdist, bake_biasdist, bake_pad;
473 /* path to render output */
478 short stamp_font_id, pad3; /* select one of blenders bitmap fonts */
480 /* stamp info user data. */
481 char stamp_udata[160];
483 /* foreground/background color. */
487 /* sequencer options */
490 char seq_flag; /* flag use for sequence render/draw */
493 /* render simplify */
495 short simplify_subsurf;
496 short simplify_shadowsamples;
497 float simplify_particles;
498 float simplify_aosss;
501 short cineonwhite DNA_DEPRECATED, cineonblack DNA_DEPRECATED; /*deprecated*/
502 float cineongamma DNA_DEPRECATED; /*deprecated*/
505 short jp2_preset DNA_DEPRECATED, jp2_depth DNA_DEPRECATED; /*deprecated*/
508 /* Dome variables */ // XXX deprecated since 2.5
509 short domeres DNA_DEPRECATED, domemode DNA_DEPRECATED; // XXX deprecated since 2.5
510 short domeangle DNA_DEPRECATED, dometilt DNA_DEPRECATED; // XXX deprecated since 2.5
511 float domeresbuf DNA_DEPRECATED; // XXX deprecated since 2.5
513 struct Text *dometext DNA_DEPRECATED; // XXX deprecated since 2.5
519 /* *************************************************************** */
520 /* Render Conversion/Simplfication Settings */
522 /* control render convert and shading engine */
523 typedef struct RenderProfile {
524 struct RenderProfile *next, *prev;
529 short shadbufsample_max;
532 float ao_error, pad2;
536 /* *************************************************************** */
537 /* Game Engine - Dome */
539 typedef struct GameDome {
543 struct Text *warptext;
546 #define DOME_FISHEYE 1
547 #define DOME_TRUNCATED_FRONT 2
548 #define DOME_TRUNCATED_REAR 3
549 #define DOME_ENVMAP 4
550 #define DOME_PANORAM_SPH 5
551 #define DOME_NUM_MODES 6
553 /* *************************************************************** */
556 typedef struct GameFraming {
558 char type, pad1, pad2, pad3;
561 #define SCE_GAMEFRAMING_BARS 0
562 #define SCE_GAMEFRAMING_EXTEND 1
563 #define SCE_GAMEFRAMING_SCALE 2
565 typedef struct RecastData {
575 float regionmergesize;
577 float detailsampledist;
578 float detailsamplemaxerror;
582 typedef struct GameData {
584 /* standalone player */
585 struct GameFraming framing;
586 short playerflag, xplay, yplay, freqplay;
587 short depth, attrib, rt1, rt2;
588 short aasamples, pad4[3];
590 /* stereo/dome mode */
591 struct GameDome dome;
592 short stereoflag, stereomode;
594 RecastData recastData;
597 /* physics (it was in world)*/
598 float gravity; /*Gravitation constant for the game world*/
601 * Radius of the activity bubble, in Manhattan length. Objects
602 * outside the box are activity-culled. */
603 float activityBoxRadius;
606 * bit 3: (gameengine): Activity culling is enabled.
607 * bit 5: (gameengine) : enable Bullet DBVT tree for view frustrum culling
611 short occlusionRes; /* resolution of occlusion Z buffer in pixel */
614 short ticrate, maxlogicstep, physubstep, maxphystep;
615 short obstacleSimulation, pad1;
619 #define STEREO_NOSTEREO 1
620 #define STEREO_ENABLED 2
621 #define STEREO_DOME 3
623 //#define STEREO_NOSTEREO 1
624 #define STEREO_QUADBUFFERED 2
625 #define STEREO_ABOVEBELOW 3
626 #define STEREO_INTERLACED 4
627 #define STEREO_ANAGLYPH 5
628 #define STEREO_SIDEBYSIDE 6
629 #define STEREO_VINTERLACE 7
630 //#define STEREO_DOME 8
636 #define WOPHY_DYNAMO 3
638 #define WOPHY_BULLET 5
640 /* obstacleSimulation */
641 #define OBSTSIMULATION_NONE 0
642 #define OBSTSIMULATION_TOI_rays 1
643 #define OBSTSIMULATION_TOI_cells 2
646 #define GAME_RESTRICT_ANIM_UPDATES (1 << 0)
647 #define GAME_ENABLE_ALL_FRAMES (1 << 1)
648 #define GAME_SHOW_DEBUG_PROPS (1 << 2)
649 #define GAME_SHOW_FRAMERATE (1 << 3)
650 #define GAME_SHOW_PHYSICS (1 << 4)
651 #define GAME_DISPLAY_LISTS (1 << 5)
652 #define GAME_GLSL_NO_LIGHTS (1 << 6)
653 #define GAME_GLSL_NO_SHADERS (1 << 7)
654 #define GAME_GLSL_NO_SHADOWS (1 << 8)
655 #define GAME_GLSL_NO_RAMPS (1 << 9)
656 #define GAME_GLSL_NO_NODES (1 << 10)
657 #define GAME_GLSL_NO_EXTRA_TEX (1 << 11)
658 #define GAME_IGNORE_DEPRECATION_WARNINGS (1 << 12)
659 #define GAME_ENABLE_ANIMATION_RECORD (1 << 13)
660 #define GAME_SHOW_MOUSE (1 << 14)
661 #define GAME_GLSL_NO_COLOR_MANAGEMENT (1 << 15)
662 #define GAME_SHOW_OBSTACLE_SIMULATION (1 << 16)
663 /* Note: GameData.flag is now an int (max 32 flags). A short could only take 16 flags */
665 /* GameData.playerflag */
666 #define GAME_PLAYER_FULLSCREEN (1 << 0)
667 #define GAME_PLAYER_DESKTOP_RESOLUTION (1 << 1)
669 /* GameData.matmode */
670 #define GAME_MAT_TEXFACE 0
671 #define GAME_MAT_MULTITEX 1
672 #define GAME_MAT_GLSL 2
674 /* *************************************************************** */
677 typedef struct TimeMarker {
678 struct TimeMarker *next, *prev;
682 struct Object *camera;
685 /* *************************************************************** */
686 /* Paint Mode/Tool Data */
688 /* Paint Tool Base */
689 typedef struct Paint {
692 /* WM Paint cursor */
694 unsigned char paint_cursor_col[4];
699 /* ------------------------------------------- */
702 /* Texture/Image Editor */
703 typedef struct ImagePaintSettings {
708 /* for projection painting only */
709 short seam_bleed, normal_angle;
710 short screen_grab_size[2]; /* capture size for re-projection */
714 void *paintcursor; /* wm handle */
715 } ImagePaintSettings;
717 /* ------------------------------------------- */
720 /* Settings for a Particle Editing Brush */
721 typedef struct ParticleBrushData {
722 short size; /* common setting */
723 short step, invert, count; /* for specific brushes only */
728 /* Particle Edit Mode Settings */
729 typedef struct ParticleEditSettings {
735 ParticleBrushData brush[7]; /* 7 = PE_TOT_BRUSH */
736 void *paintcursor; /* runtime */
738 float emitterdist, rt;
743 int draw_step, fade_frames;
746 struct Object *object;
747 } ParticleEditSettings;
749 /* ------------------------------------------- */
753 typedef struct Sculpt {
756 /* For rotating around a pivot point */
757 //float pivot[3]; XXX not used?
760 /* Control tablet input */
761 //char tablet_size, tablet_strength; XXX not used?
764 // all this below is used to communicate with the cursor drawing routine
766 /* record movement of mouse so that rake can start at an intuitive angle */
767 float last_x, last_y;
772 float anchored_location[3];
773 float anchored_initial_mouse[2];
776 float pressure_value;
778 float special_rotation;
783 /* ------------------------------------------- */
787 typedef struct VPaint {
791 int tot; /* allocation size of prev buffers */
792 unsigned int *vpaint_prev; /* previous mesh colors */
793 struct MDeformVert *wpaint_prev; /* previous vertex weights */
795 void *paintcursor; /* wm handle */
799 #define VP_COLINDEX 1
804 // #define VP_MIRROR_X 32 // deprecated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X)
805 #define VP_ONLYVGROUP 128
807 /* *************************************************************** */
808 /* Transform Orientations */
810 typedef struct TransformOrientation {
811 struct TransformOrientation *next, *prev;
812 char name[64]; /* MAX_NAME */
815 } TransformOrientation;
817 /* *************************************************************** */
818 /* Unified Paint Settings */
820 /* These settings can override the equivalent fields in the active
821 Brush for any paint mode; the flag field controls whether these
823 typedef struct UnifiedPaintSettings {
824 /* unified radius of brush in pixels */
827 /* unified radius of brush in Blender units */
828 float unprojected_radius;
830 /* unified strength of brush */
833 /* user preferences for sculpt and paint */
835 } UnifiedPaintSettings;
838 UNIFIED_PAINT_SIZE = (1<<0),
839 UNIFIED_PAINT_ALPHA = (1<<1),
841 /* only used if unified size is enabled, mirros the brush flags
842 BRUSH_LOCK_SIZE and BRUSH_SIZE_PRESSURE */
843 UNIFIED_PAINT_BRUSH_LOCK_SIZE = (1<<2),
844 UNIFIED_PAINT_BRUSH_SIZE_PRESSURE = (1<<3),
846 /* only used if unified alpha is enabled, mirrors the brush flag
847 BRUSH_ALPHA_PRESSURE */
848 UNIFIED_PAINT_BRUSH_ALPHA_PRESSURE = (1<<4)
849 } UnifiedPaintSettingsFlags;
851 /* *************************************************************** */
854 typedef struct ToolSettings {
855 VPaint *vpaint; /* vertex paint */
856 VPaint *wpaint; /* weight paint */
862 /* Subdivide Settings */
865 /*Triangle to Quad conversion threshold*/
872 float extr_offs; /* extrude offset */
873 float doublimit; /* remove doubles limit */
874 float normalsize; /* size of normals */
877 /* Selection Mode for Mesh */
880 /* Primitive Settings */
885 /* Cylinder - Tube - Circle */
891 float uvcalc_cubesize;
894 short uvcalc_mapalign;
896 short uv_flag, uv_selectmode;
903 short autoik_chainlen;
905 /* Image Paint (8 byttse aligned please!) */
906 struct ImagePaintSettings imapaint;
908 /* Particle Editing */
909 struct ParticleEditSettings particle;
911 /* Transform Proportional Area of Effect */
912 float proportional_size;
914 /* Select Group Threshold */
920 /* Auto-Keying Mode */
921 short autokey_mode, autokey_flag; /* defines in DNA_userdef_types.h */
925 char retopo_paint_tool;
926 char line_div, ellipse_div, retopo_hotspot;
929 char multires_subdiv_type;
931 /* Skeleton generation */
932 short skgen_resolution;
933 float skgen_threshold_internal;
934 float skgen_threshold_external;
935 float skgen_length_ratio;
936 float skgen_length_limit;
937 float skgen_angle_limit;
938 float skgen_correlation_limit;
939 float skgen_symmetry_limit;
940 float skgen_retarget_angle_weight;
941 float skgen_retarget_length_weight;
942 float skgen_retarget_distance_weight;
945 char skgen_postpro_passes;
946 char skgen_subdivisions[3];
947 char skgen_multi_level;
949 /* Skeleton Sketching */
950 struct Object *skgen_template;
952 char bone_sketching_convert;
953 char skgen_subdivision_number;
954 char skgen_retarget_options;
955 char skgen_retarget_roll;
956 char skgen_side_string[8];
957 char skgen_num_string[8];
961 char edge_mode_live_unwrap;
965 short snap_flag, snap_target;
966 short proportional, prop_mode;
967 char proportional_objects; /* proportional edit, object mode */
970 char auto_normalize; /*auto normalizing mode in wpaint*/
971 char multipaint; /* paint multiple bones in wpaint */
973 /* XXX: these sculpt_paint_* fields are deprecated, use the
974 unified_paint_settings field instead! */
975 short sculpt_paint_settings DNA_DEPRECATED;
977 int sculpt_paint_unified_size DNA_DEPRECATED;
978 float sculpt_paint_unified_unprojected_radius DNA_DEPRECATED;
979 float sculpt_paint_unified_alpha DNA_DEPRECATED;
981 /* Unified Paint Settings */
982 struct UnifiedPaintSettings unified_paint_settings;
985 /* *************************************************************** */
986 /* Assorted Scene Data */
988 /* ------------------------------------------- */
989 /* Stats (show in Info header) */
991 typedef struct bStats {
992 /* scene totals for visible layers */
993 int totobj, totlamp, totobjsel, totcurve, totmesh, totarmature;
994 int totvert, totface;
997 /* ------------------------------------------- */
1000 typedef struct UnitSettings {
1001 /* Display/Editing unit options for each scene */
1002 float scale_length; /* maybe have other unit conversions? */
1003 char system; /* imperial, metric etc */
1004 char system_rotation; /* not implimented as a propper unit system yet */
1008 /* ------------------------------------------- */
1009 /* Global/Common Physics Settings */
1011 typedef struct PhysicsSettings {
1013 int flag, quick_cache_step, rt;
1016 /* *************************************************************** */
1017 /* Scene ID-Block */
1019 typedef struct Scene {
1021 struct AnimData *adt; /* animation data (must be immediately after id for utilities to use it) */
1023 struct Object *camera;
1024 struct World *world;
1029 struct Base *basact; /* active base */
1030 struct Object *obedit; /* name replaces old G.obedit */
1032 float cursor[3]; /* 3d cursor location */
1033 float twcent[3]; /* center for transform widget */
1034 float twmin[3], twmax[3]; /* boundbox of selection for transform widget */
1036 unsigned int lay; /* bitflags for layer visibility */
1037 int layact; /* active layer */
1038 unsigned int lay_updated; /* runtime flag, has layer ever been updated since load? */
1040 short flag; /* various settings */
1044 struct bNodeTree *nodetree;
1046 struct Editing *ed; /* sequence editor data is allocated here */
1048 struct ToolSettings *toolsettings; /* default allocated now */
1049 struct SceneStats *stats; /* default allocated now */
1051 /* migrate or replace? depends on some internal things... */
1052 /* no, is on the right place (ton) */
1053 struct RenderData r;
1054 struct AudioData audio;
1057 ListBase transform_spaces;
1060 void *sound_scene_handle;
1061 void *sound_scrub_handle;
1062 void *speaker_handles;
1064 void *fps_info; /* (runtime) info/cache used for presenting playback framerate info to the user */
1066 /* none of the dependancy graph vars is mean to be saved */
1067 struct DagForest *theDag;
1068 short dagisvalid, dagflags;
1069 short recalc; /* recalc = counterpart of ob->recalc */
1074 /* User-Defined KeyingSets */
1075 int active_keyingset; /* index of the active KeyingSet. first KeyingSet has index 1, 'none' active is 0, 'add new' is -1 */
1076 ListBase keyingsets; /* KeyingSets for this scene */
1079 struct GameFraming framing DNA_DEPRECATED; // XXX deprecated since 2.5
1083 struct UnitSettings unit;
1086 struct bGPdata *gpd;
1088 /* Physics simulation settings */
1089 struct PhysicsSettings physics_settings;
1091 /* Movie Tracking */
1092 struct MovieClip *clip; /* active movie clip */
1094 uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by object_handle_update() */
1095 uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */
1099 /* **************** RENDERDATA ********************* */
1102 /* use preview range */
1103 #define SCER_PRV_RANGE (1<<0)
1105 /* mode (int now) */
1106 #define R_OSA 0x0001
1107 #define R_SHADOW 0x0002
1108 #define R_GAMMA 0x0004
1109 #define R_ORTHO 0x0008
1110 #define R_ENVMAP 0x0010
1111 #define R_EDGE 0x0020
1112 #define R_FIELDS 0x0040
1113 #define R_FIELDSTILL 0x0080
1114 #define R_RADIO 0x0100
1115 #define R_BORDER 0x0200
1116 #define R_PANORAMA 0x0400 /* deprecated as scene option, still used in renderer */
1117 #define R_CROP 0x0800
1118 /*#define R_COSMO 0x1000 deprecated */
1119 #define R_ODDFIELD 0x2000
1120 #define R_MBLUR 0x4000
1121 /* unified was here */
1122 #define R_RAYTRACE 0x10000
1123 /* R_GAUSS is obsolete, but used to retrieve setting from old files */
1124 #define R_GAUSS 0x20000
1125 /* fbuf obsolete... */
1126 /*#define R_FBUF 0x40000*/
1127 /* threads obsolete... is there for old files, now use for autodetect threads */
1128 #define R_THREADS 0x80000
1129 /* Use the same flag for autothreads */
1130 #define R_FIXED_THREADS 0x80000
1132 #define R_SPEED 0x100000
1133 #define R_SSS 0x200000
1134 #define R_NO_OVERWRITE 0x400000 /* skip existing files */
1135 #define R_TOUCH 0x800000 /* touch files before rendering */
1136 #define R_SIMPLIFY 0x1000000
1139 #define R_SEQ_GL_PREV 1
1140 #define R_SEQ_GL_REND 2
1144 #define R_OUTPUT_SCREEN 0
1145 #define R_OUTPUT_AREA 1
1146 #define R_OUTPUT_WINDOW 2
1147 #define R_OUTPUT_NONE 3
1148 /*#define R_OUTPUT_FORKED 4*/
1151 #define R_FILTER_BOX 0
1152 #define R_FILTER_TENT 1
1153 #define R_FILTER_QUAD 2
1154 #define R_FILTER_CUBIC 3
1155 #define R_FILTER_CATROM 4
1156 #define R_FILTER_GAUSS 5
1157 #define R_FILTER_MITCH 6
1158 #define R_FILTER_FAST_GAUSS 7 /* note, this is only used for nodes at the moment */
1160 /* raytrace structure */
1161 #define R_RAYSTRUCTURE_AUTO 0
1162 #define R_RAYSTRUCTURE_OCTREE 1
1163 #define R_RAYSTRUCTURE_BLIBVH 2
1164 #define R_RAYSTRUCTURE_VBVH 3
1165 #define R_RAYSTRUCTURE_SIMD_SVBVH 4 /* needs SIMD */
1166 #define R_RAYSTRUCTURE_SIMD_QBVH 5 /* needs SIMD */
1168 /* raytrace_options */
1169 #define R_RAYTRACE_USE_LOCAL_COORDS 0x0001
1170 #define R_RAYTRACE_USE_INSTANCES 0x0002
1172 /* scemode (int now) */
1173 #define R_DOSEQ 0x0001
1174 #define R_BG_RENDER 0x0002
1175 /* passepartout is camera option now, keep this for backward compatibility */
1176 #define R_PASSEPARTOUT 0x0004
1177 #define R_PREVIEWBUTS 0x0008
1178 #define R_EXTENSION 0x0010
1179 #define R_MATNODE_PREVIEW 0x0020
1180 #define R_DOCOMP 0x0040
1181 #define R_COMP_CROP 0x0080
1182 #define R_FREE_IMAGE 0x0100
1183 #define R_SINGLE_LAYER 0x0200
1184 #define R_EXR_TILE_FILE 0x0400
1185 #define R_COMP_FREE 0x0800
1186 #define R_NO_IMAGE_LOAD 0x1000
1187 #define R_NO_TEX 0x2000
1188 #define R_NO_FRAME_UPDATE 0x4000
1189 #define R_FULL_SAMPLE 0x8000
1190 /* #define R_DEPRECATED 0x10000 */
1191 /* #define R_RECURS_PROTECTION 0x20000 */
1192 #define R_TEXNODE_PREVIEW 0x40000
1195 #define R_STAMP_TIME 0x0001
1196 #define R_STAMP_FRAME 0x0002
1197 #define R_STAMP_DATE 0x0004
1198 #define R_STAMP_CAMERA 0x0008
1199 #define R_STAMP_SCENE 0x0010
1200 #define R_STAMP_NOTE 0x0020
1201 #define R_STAMP_DRAW 0x0040 /* draw in the image */
1202 #define R_STAMP_MARKER 0x0080
1203 #define R_STAMP_FILENAME 0x0100
1204 #define R_STAMP_SEQSTRIP 0x0200
1205 #define R_STAMP_RENDERTIME 0x0400
1206 #define R_STAMP_CAMERALENS 0x0800
1207 #define R_STAMP_ALL (R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_CAMERA|R_STAMP_SCENE| \
1208 R_STAMP_NOTE|R_STAMP_MARKER|R_STAMP_FILENAME|R_STAMP_SEQSTRIP| \
1209 R_STAMP_RENDERTIME|R_STAMP_CAMERALENS)
1213 #define R_ALPHAPREMUL 1
1214 #define R_ALPHAKEY 2
1216 /* color_mgt_flag */
1217 #define R_COLOR_MANAGEMENT (1 << 0)
1218 #define R_COLOR_MANAGEMENT_PREDIVIDE (1 << 1)
1220 /* subimtype, flag options for imtype */
1221 #define R_OPENEXR_HALF 1 /*deprecated*/
1222 #define R_OPENEXR_ZBUF 2 /*deprecated*/
1223 #define R_PREVIEW_JPG 4 /*deprecated*/
1224 #define R_CINEON_LOG 8 /*deprecated*/
1225 #define R_TIFF_16BIT 16 /*deprecated*/
1227 #define R_JPEG2K_12BIT 32 /* Jpeg2000 */ /*deprecated*/
1228 #define R_JPEG2K_16BIT 64 /*deprecated*/
1229 #define R_JPEG2K_YCC 128 /* when disabled use RGB */ /*deprecated*/
1230 #define R_JPEG2K_CINE_PRESET 256 /*deprecated*/
1231 #define R_JPEG2K_CINE_48FPS 512 /*deprecated*/
1233 /* bake_mode: same as RE_BAKE_xxx defines */
1235 #define R_BAKE_CLEAR 1
1236 #define R_BAKE_OSA 2
1237 #define R_BAKE_TO_ACTIVE 4
1238 #define R_BAKE_NORMALIZE 8
1239 #define R_BAKE_MULTIRES 16
1240 #define R_BAKE_LORES_MESH 32
1242 /* bake_normal_space */
1243 #define R_BAKE_SPACE_CAMERA 0
1244 #define R_BAKE_SPACE_WORLD 1
1245 #define R_BAKE_SPACE_OBJECT 2
1246 #define R_BAKE_SPACE_TANGENT 3
1249 #define R_SIMPLE_NO_TRIANGULATE 1
1251 /* sequencer seq_prev_type seq_rend_type */
1254 /* **************** SCENE ********************* */
1256 /* for general use */
1257 #define MAXFRAME 300000
1258 #define MAXFRAMEF 300000.0f
1261 #define MINFRAMEF 0.0f
1263 /* (minimum frame number for current-frame) */
1264 #define MINAFRAME -300000
1265 #define MINAFRAMEF -300000.0f
1267 /* depricate this! */
1268 #define TESTBASE(v3d, base) ( \
1269 ((base)->flag & SELECT) && \
1270 ((base)->lay & v3d->lay) && \
1271 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1272 #define TESTBASELIB(v3d, base) ( \
1273 ((base)->flag & SELECT) && \
1274 ((base)->lay & v3d->lay) && \
1275 ((base)->object->id.lib==NULL) && \
1276 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1277 #define TESTBASELIB_BGMODE(v3d, scene, base) ( \
1278 ((base)->flag & SELECT) && \
1279 ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \
1280 ((base)->object->id.lib==NULL) && \
1281 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0) )
1282 #define BASE_EDITABLE_BGMODE(v3d, scene, base) ( \
1283 ((base)->lay & (v3d ? v3d->lay : scene->lay)) && \
1284 ((base)->object->id.lib==NULL) && \
1285 (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
1286 #define BASE_SELECTABLE(v3d, base) ( \
1287 (base->lay & v3d->lay) && \
1288 (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0 )
1289 #define BASE_VISIBLE(v3d, base) ( \
1290 (base->lay & v3d->lay) && \
1291 (base->object->restrictflag & OB_RESTRICT_VIEW)==0 )
1293 #define FIRSTBASE scene->base.first
1294 #define LASTBASE scene->base.last
1295 #define BASACT (scene->basact)
1296 #define OBACT (BASACT? BASACT->object: NULL)
1298 #define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL)
1299 #define V3D_CAMERA_SCENE(scene, v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : (scene)->camera)
1301 #define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
1302 #define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
1303 #define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
1304 #define CFRA (scene->r.cfra)
1305 #define SUBFRA (scene->r.subframe)
1306 #define SFRA (scene->r.sfra)
1307 #define EFRA (scene->r.efra)
1308 #define PRVRANGEON (scene->r.flag & SCER_PRV_RANGE)
1309 #define PSFRA ((PRVRANGEON)? (scene->r.psfra): (scene->r.sfra))
1310 #define PEFRA ((PRVRANGEON)? (scene->r.pefra): (scene->r.efra))
1311 #define FRA2TIME(a) ((((double) scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec)
1312 #define TIME2FRA(a) ((((double) scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base)
1313 #define FPS (((double) scene->r.frs_sec) / (double)scene->r.frs_sec_base)
1315 #define RAD_PHASE_PATCHES 1
1316 #define RAD_PHASE_FACES 2
1318 /* base->flag is in DNA_object_types.h */
1320 /* toolsettings->snap_flag */
1322 #define SCE_SNAP_ROTATE 2
1323 #define SCE_SNAP_PEEL_OBJECT 4
1324 #define SCE_SNAP_PROJECT 8
1325 #define SCE_SNAP_NO_SELF 16
1326 /* toolsettings->snap_target */
1327 #define SCE_SNAP_TARGET_CLOSEST 0
1328 #define SCE_SNAP_TARGET_CENTER 1
1329 #define SCE_SNAP_TARGET_MEDIAN 2
1330 #define SCE_SNAP_TARGET_ACTIVE 3
1331 /* toolsettings->snap_mode */
1332 #define SCE_SNAP_MODE_INCREMENT 0
1333 #define SCE_SNAP_MODE_VERTEX 1
1334 #define SCE_SNAP_MODE_EDGE 2
1335 #define SCE_SNAP_MODE_FACE 3
1336 #define SCE_SNAP_MODE_VOLUME 4
1338 /* toolsettings->selectmode */
1339 #define SCE_SELECT_VERTEX 1 /* for mesh */
1340 #define SCE_SELECT_EDGE 2
1341 #define SCE_SELECT_FACE 4
1343 /* toolsettings->particle.selectmode for particles */
1344 #define SCE_SELECT_PATH 1
1345 #define SCE_SELECT_POINT 2
1346 #define SCE_SELECT_END 4
1348 /* sce->recalc (now in use by previewrender) */
1349 #define SCE_PRV_CHANGED 1
1351 /* toolsettings->prop_mode (proportional falloff) */
1352 #define PROP_SMOOTH 0
1353 #define PROP_SPHERE 1
1355 #define PROP_SHARP 3
1357 #define PROP_CONST 5
1358 #define PROP_RANDOM 6
1359 #define PROP_MODE_MAX 7
1361 /* toolsettings->proportional */
1362 #define PROP_EDIT_OFF 0
1363 #define PROP_EDIT_ON 1
1364 #define PROP_EDIT_CONNECTED 2
1367 #define SCE_DS_SELECTED (1<<0)
1368 #define SCE_DS_COLLAPSED (1<<1)
1369 #define SCE_NLA_EDIT_ON (1<<2)
1370 #define SCE_FRAME_DROP (1<<3)
1373 /* return flag next_object function */
1380 #define AUDIO_MUTE (1<<0)
1381 #define AUDIO_SYNC (1<<1)
1382 #define AUDIO_SCRUB (1<<2)
1383 #define AUDIO_VOLUME_ANIMATED (1<<3)
1385 #define FFMPEG_MULTIPLEX_AUDIO 1 /* deprecated, you can choose none as audiocodec now */
1386 #define FFMPEG_AUTOSPLIT_OUTPUT 2
1390 PAINT_SHOW_BRUSH = (1<<0),
1391 PAINT_FAST_NAVIGATE = (1<<1),
1392 PAINT_SHOW_BRUSH_ON_SURFACE = (1<<2),
1396 /* These can eventually be moved to paint flags? */
1397 typedef enum SculptFlags {
1398 SCULPT_SYMM_X = (1<<0),
1399 SCULPT_SYMM_Y = (1<<1),
1400 SCULPT_SYMM_Z = (1<<2),
1401 SCULPT_LOCK_X = (1<<3),
1402 SCULPT_LOCK_Y = (1<<4),
1403 SCULPT_LOCK_Z = (1<<5),
1404 SCULPT_SYMMETRY_FEATHER = (1<<6),
1405 SCULPT_USE_OPENMP = (1<<7),
1406 SCULPT_ONLY_DEFORM = (1<<8),
1409 /* ImagePaintSettings.flag */
1410 #define IMAGEPAINT_DRAWING 1
1411 // #define IMAGEPAINT_DRAW_TOOL 2 // deprecated
1412 // #define IMAGEPAINT_DRAW_TOOL_DRAWING 4 // deprecated
1414 /* projection painting only */
1415 #define IMAGEPAINT_PROJECT_DISABLE 8 /* Non projection 3D painting */
1416 #define IMAGEPAINT_PROJECT_XRAY 16
1417 #define IMAGEPAINT_PROJECT_BACKFACE 32
1418 #define IMAGEPAINT_PROJECT_FLAT 64
1419 #define IMAGEPAINT_PROJECT_LAYER_CLONE 128
1420 #define IMAGEPAINT_PROJECT_LAYER_STENCIL 256
1421 #define IMAGEPAINT_PROJECT_LAYER_STENCIL_INV 512
1423 /* toolsettings->uvcalc_flag */
1424 #define UVCALC_FILLHOLES 1
1425 #define UVCALC_NO_ASPECT_CORRECT 2 /* would call this UVCALC_ASPECT_CORRECT, except it should be default with old file */
1426 #define UVCALC_TRANSFORM_CORRECT 4 /* adjust UV's while transforming to avoid distortion */
1428 /* toolsettings->uv_flag */
1429 #define UV_SYNC_SELECTION 1
1430 #define UV_SHOW_SAME_IMAGE 2
1432 /* toolsettings->uv_selectmode */
1433 #define UV_SELECT_VERTEX 1
1434 #define UV_SELECT_EDGE 2
1435 #define UV_SELECT_FACE 4
1436 #define UV_SELECT_ISLAND 8
1438 /* toolsettings->edge_mode */
1439 #define EDGE_MODE_SELECT 0
1440 #define EDGE_MODE_TAG_SEAM 1
1441 #define EDGE_MODE_TAG_SHARP 2
1442 #define EDGE_MODE_TAG_CREASE 3
1443 #define EDGE_MODE_TAG_BEVEL 4
1445 /* toolsettings->gpencil_flags */
1446 #define GP_TOOL_FLAG_PAINTSESSIONS_ON (1<<0)
1448 /* toolsettings->particle flag */
1449 #define PE_KEEP_LENGTHS 1
1450 #define PE_LOCK_FIRST 2
1451 #define PE_DEFLECT_EMITTER 4
1452 #define PE_INTERPOLATE_ADDED 8
1453 #define PE_DRAW_PART 16
1454 /* #define PE_X_MIRROR 64 */ /* deprecated */
1455 #define PE_FADE_TIME 128
1456 #define PE_AUTO_VELOCITY 256
1458 /* toolsetting->particle brushtype */
1459 #define PE_BRUSH_NONE -1
1460 #define PE_BRUSH_COMB 0
1461 #define PE_BRUSH_CUT 1
1462 #define PE_BRUSH_LENGTH 2
1463 #define PE_BRUSH_PUFF 3
1464 #define PE_BRUSH_ADD 4
1465 #define PE_BRUSH_SMOOTH 5
1466 #define PE_BRUSH_WEIGHT 6
1468 /* this must equal ParticleEditSettings.brush array size */
1469 #define PE_TOT_BRUSH 6
1471 /* ParticleBrushData->flag */
1472 #define PE_BRUSH_DATA_PUFF_VOLUME 1
1474 /* tooksettings->particle edittype */
1475 #define PE_TYPE_PARTICLES 0
1476 #define PE_TYPE_SOFTBODY 1
1477 #define PE_TYPE_CLOTH 2
1479 /* toolsettings->retopo_mode */
1481 #define RETOPO_PAINT 2
1483 /* toolsettings->retopo_paint_tool */ /*UNUSED*/
1484 /* #define RETOPO_PEN 1 */
1485 /* #define RETOPO_LINE 2 */
1486 /* #define RETOPO_ELLIPSE 4 */
1488 /* toolsettings->skgen_options */
1489 #define SKGEN_FILTER_INTERNAL (1 << 0)
1490 #define SKGEN_FILTER_EXTERNAL (1 << 1)
1491 #define SKGEN_SYMMETRY (1 << 2)
1492 #define SKGEN_CUT_LENGTH (1 << 3)
1493 #define SKGEN_CUT_ANGLE (1 << 4)
1494 #define SKGEN_CUT_CORRELATION (1 << 5)
1495 #define SKGEN_HARMONIC (1 << 6)
1496 #define SKGEN_STICK_TO_EMBEDDING (1 << 7)
1497 #define SKGEN_ADAPTIVE_DISTANCE (1 << 8)
1498 #define SKGEN_FILTER_SMART (1 << 9)
1499 #define SKGEN_DISP_LENGTH (1 << 10)
1500 #define SKGEN_DISP_WEIGHT (1 << 11)
1501 #define SKGEN_DISP_ORIG (1 << 12)
1502 #define SKGEN_DISP_EMBED (1 << 13)
1503 #define SKGEN_DISP_INDEX (1 << 14)
1505 #define SKGEN_SUB_LENGTH 0
1506 #define SKGEN_SUB_ANGLE 1
1507 #define SKGEN_SUB_CORRELATION 2
1508 #define SKGEN_SUB_TOTAL 3
1510 /* toolsettings->skgen_postpro */
1511 #define SKGEN_SMOOTH 0
1512 #define SKGEN_AVERAGE 1
1513 #define SKGEN_SHARPEN 2
1515 /* toolsettings->bone_sketching */
1516 #define BONE_SKETCHING 1
1517 #define BONE_SKETCHING_QUICK 2
1518 #define BONE_SKETCHING_ADJUST 4
1520 /* toolsettings->bone_sketching_convert */
1521 #define SK_CONVERT_CUT_FIXED 0
1522 #define SK_CONVERT_CUT_LENGTH 1
1523 #define SK_CONVERT_CUT_ADAPTATIVE 2
1524 #define SK_CONVERT_RETARGET 3
1526 /* toolsettings->skgen_retarget_options */
1527 #define SK_RETARGET_AUTONAME 1
1529 /* toolsettings->skgen_retarget_roll */
1530 #define SK_RETARGET_ROLL_NONE 0
1531 #define SK_RETARGET_ROLL_VIEW 1
1532 #define SK_RETARGET_ROLL_JOINT 2
1534 /* physics_settings->flag */
1535 #define PHYS_GLOBAL_GRAVITY 1
1539 /* UnitSettings->system */
1540 #define USER_UNIT_NONE 0
1541 #define USER_UNIT_METRIC 1
1542 #define USER_UNIT_IMPERIAL 2
1543 /* UnitSettings->flag */
1544 #define USER_UNIT_OPT_SPLIT 1
1545 #define USER_UNIT_ROT_RADIANS 2