~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/makesdna/DNA_scene_types.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
#include "DNA_defs.h"
36
36
 
37
 
// XXX, temp feature - campbell
 
37
/* XXX, temp feature - campbell */
38
38
#define DURIAN_CAMERA_SWITCH
39
39
 
40
40
#ifdef __cplusplus
41
41
extern "C" {
42
42
#endif
43
43
 
 
44
#include "DNA_color_types.h"  /* color management */
44
45
#include "DNA_vec_types.h"
45
46
#include "DNA_listBase.h"
46
47
#include "DNA_ID.h"
176
177
        struct Material *mat_override;
177
178
        struct Group *light_override;
178
179
        
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 */
 
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 */
181
183
        int layflag;
182
184
        
183
 
        int pad;
184
 
        
185
185
        int passflag;                   /* pass_xor has to be after passflag */
186
186
        int pass_xor;
 
187
 
 
188
        int samples;
 
189
        int pad;
187
190
} SceneRenderLayer;
188
191
 
189
192
/* srl->layflag */
268
271
 
269
272
        /* Jpeg2000 */
270
273
        char  jp2_flag;
271
 
 
272
 
        char pad[7];
273
 
 
 
274
        char jp2_codec;
 
275
 
 
276
        char pad[6];
 
277
 
 
278
        /* color management */
 
279
        ColorManagedViewSettings view_settings;
 
280
        ColorManagedDisplaySettings display_settings;
274
281
} ImageFormatData;
275
282
 
276
283
 
286
293
#define R_IMF_IMTYPE_AVIRAW         15
287
294
#define R_IMF_IMTYPE_AVIJPEG        16
288
295
#define R_IMF_IMTYPE_PNG            17
289
 
#define R_IMF_IMTYPE_AVICODEC       18
 
296
/* #define R_IMF_IMTYPE_AVICODEC    18 */ /* avicodec is nomore */
290
297
#define R_IMF_IMTYPE_QUICKTIME      19
291
298
#define R_IMF_IMTYPE_BMP            20
292
299
#define R_IMF_IMTYPE_RADHDR         21
312
319
/* return values from BKE_imtype_valid_depths, note this is depts per channel */
313
320
#define R_IMF_CHAN_DEPTH_1  (1<<0) /* 1bits  (unused) */
314
321
#define R_IMF_CHAN_DEPTH_8  (1<<1) /* 8bits  (default) */
315
 
#define R_IMF_CHAN_DEPTH_12 (1<<2) /* 12bits (uncommon, jp2 supports) */
316
 
#define R_IMF_CHAN_DEPTH_16 (1<<3) /* 16bits (tiff, halff float exr) */
317
 
#define R_IMF_CHAN_DEPTH_24 (1<<4) /* 24bits (unused) */
318
 
#define R_IMF_CHAN_DEPTH_32 (1<<5) /* 32bits (full float exr) */
 
322
#define R_IMF_CHAN_DEPTH_10 (1<<2) /* 10bits (uncommon, Cineon/DPX support) */
 
323
#define R_IMF_CHAN_DEPTH_12 (1<<3) /* 12bits (uncommon, jp2/DPX support) */
 
324
#define R_IMF_CHAN_DEPTH_16 (1<<4) /* 16bits (tiff, halff float exr) */
 
325
#define R_IMF_CHAN_DEPTH_24 (1<<5) /* 24bits (unused) */
 
326
#define R_IMF_CHAN_DEPTH_32 (1<<6) /* 32bits (full float exr) */
319
327
 
320
328
/* ImageFormatData.planes */
321
329
#define R_IMF_PLANES_RGB   24
334
342
#define R_IMF_JP2_FLAG_CINE_PRESET  (1<<1)  /* was R_JPEG2K_CINE_PRESET */
335
343
#define R_IMF_JP2_FLAG_CINE_48      (1<<2)  /* was R_JPEG2K_CINE_48FPS */
336
344
 
 
345
/* ImageFormatData.jp2_codec */
 
346
#define R_IMF_JP2_CODEC_JP2  0
 
347
#define R_IMF_JP2_CODEC_J2K  1
 
348
 
337
349
/* ImageFormatData.cineon_flag */
338
350
#define R_IMF_CINEON_FLAG_LOG (1<<0)  /* was R_CINEON_LOG */
339
351
 
389
401
        /**
390
402
         * The number of part to use in the x direction
391
403
         */
392
 
        short xparts;
 
404
        short xparts DNA_DEPRECATED;
393
405
        /**
394
406
         * The number of part to use in the y direction
395
407
         */
396
 
        short yparts;
 
408
        short yparts DNA_DEPRECATED;
 
409
 
 
410
        /**
 
411
         * render tile dimensions
 
412
         */
 
413
        short tilex, tiley;
397
414
 
398
415
        short planes  DNA_DEPRECATED, imtype  DNA_DEPRECATED, subimtype  DNA_DEPRECATED, quality  DNA_DEPRECATED; /*deprecated!*/
399
416
        
441
458
 
442
459
        short frs_sec, edgeint;
443
460
 
 
461
        int pad;
 
462
 
444
463
        
445
464
        /* safety, border and display rect */
446
465
        rctf safety, border;
469
488
        int color_mgt_flag;
470
489
        
471
490
        /** post-production settings. deprecated, but here for upwards compat (initialized to 1) */
472
 
        float postgamma, posthue, postsat;       
 
491
        float postgamma, posthue, postsat;
473
492
        
474
493
         /* Dither noise intensity */
475
494
        float dither_intensity;
477
496
        /* Bake Render options */
478
497
        short bake_osa, bake_filter, bake_mode, bake_flag;
479
498
        short bake_normal_space, bake_quad_split;
480
 
        float bake_maxdist, bake_biasdist, bake_pad;
 
499
        float bake_maxdist, bake_biasdist;
 
500
        short bake_samples, bake_pad;
481
501
 
482
502
        /* path to render output */
483
503
        char pic[1024]; /* 1024 = FILE_MAX */
621
641
        short physicsEngine;
622
642
        short exitkey, pad;
623
643
        short ticrate, maxlogicstep, physubstep, maxphystep;
624
 
        short obstacleSimulation, pad1;
 
644
        short obstacleSimulation;
 
645
        short raster_storage;
625
646
        float levelHeight;
 
647
        float deactivationtime, lineardeactthreshold, angulardeactthreshold, pad2;
626
648
} GameData;
627
649
 
628
650
#define STEREO_NOSTEREO         1
647
669
#define OBSTSIMULATION_TOI_rays         1
648
670
#define OBSTSIMULATION_TOI_cells        2
649
671
 
 
672
/* Raster storage */
 
673
#define RAS_STORE_AUTO          0
 
674
#define RAS_STORE_IMMEDIATE     1
 
675
#define RAS_STORE_VA            2
 
676
#define RAS_STORE_VBO           3
 
677
 
650
678
/* GameData.flag */
651
679
#define GAME_RESTRICT_ANIM_UPDATES                      (1 << 0)
652
680
#define GAME_ENABLE_ALL_FRAMES                          (1 << 1)
665
693
#define GAME_SHOW_MOUSE                                         (1 << 14)
666
694
#define GAME_GLSL_NO_COLOR_MANAGEMENT           (1 << 15)
667
695
#define GAME_SHOW_OBSTACLE_SIMULATION           (1 << 16)
 
696
#define GAME_NO_MATERIAL_CACHING                        (1 << 17)
668
697
/* Note: GameData.flag is now an int (max 32 flags). A short could only take 16 flags */
669
698
 
670
699
/* GameData.playerflag */
700
729
/* *************************************************************** */
701
730
/* Paint Mode/Tool Data */
702
731
 
 
732
#define PAINT_MAX_INPUT_SAMPLES 64
 
733
 
703
734
/* Paint Tool Base */
704
735
typedef struct Paint {
705
736
        struct Brush *brush;
708
739
        void *paint_cursor;
709
740
        unsigned char paint_cursor_col[4];
710
741
 
 
742
        /* enum PaintFlags */
711
743
        int flags;
 
744
 
 
745
        /* Paint stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to
 
746
         * smooth the stroke */
 
747
        int num_input_samples;
 
748
        
 
749
        int pad;
712
750
} Paint;
713
751
 
714
752
/* ------------------------------------------- */
776
814
        //char tablet_size, tablet_strength; XXX not used?
777
815
        int radial_symm[3];
778
816
 
779
 
        // all this below is used to communicate with the cursor drawing routine
780
 
 
781
 
        /* record movement of mouse so that rake can start at an intuitive angle */
782
 
        float last_x, last_y;
783
 
        float last_angle;
784
 
 
785
 
        int draw_anchored;
786
 
        int   anchored_size;
787
 
        float anchored_location[3];
788
 
        float anchored_initial_mouse[2];
789
 
 
790
 
        int draw_pressure;
791
 
        float pressure_value;
792
 
 
793
 
        float special_rotation;
794
 
 
795
 
        int pad;
 
817
        /* Maximum edge length for dynamic topology sculpting (in pixels) */
 
818
        int detail_size;
 
819
 
 
820
        /* Direction used for SCULPT_OT_symmetrize operator */
 
821
        int symmetrize_direction;
796
822
} Sculpt;
797
823
 
798
824
typedef struct UvSculpt {
813
839
        void *paintcursor;                                      /* wm handle */
814
840
} VPaint;
815
841
 
816
 
/* VPaint flag */
817
 
#define VP_COLINDEX     1
818
 
#define VP_AREA         2  /* vertex paint only */
819
 
 
820
 
#define VP_NORMALS      8
821
 
#define VP_SPRAY        16
822
 
// #define VP_MIRROR_X  32 // deprecated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X)
823
 
#define VP_ONLYVGROUP   128  /* weight paint only */
 
842
/* VPaint.flag */
 
843
enum {
 
844
        // VP_COLINDEX  = (1 << 0),  /* only paint onto active material*/  /* deprecated since before 2.49 */
 
845
        VP_AREA         = (1 << 1),
 
846
        VP_NORMALS      = (1 << 3),
 
847
        VP_SPRAY        = (1 << 4),
 
848
        // VP_MIRROR_X  = (1 << 5),  /* deprecated in 2.5x use (me->editflag & ME_EDIT_MIRROR_X) */
 
849
        VP_ONLYVGROUP   = (1 << 7)   /* weight paint only */
 
850
};
824
851
 
825
852
/* *************************************************************** */
826
853
/* Transform Orientations */
849
876
        /* unified strength of brush */
850
877
        float alpha;
851
878
 
 
879
        /* unified brush weight, [0, 1] */
 
880
        float weight;
 
881
 
852
882
        /* user preferences for sculpt and paint */
853
883
        int flag;
 
884
 
 
885
        /* rake rotation */
 
886
 
 
887
        /* record movement of mouse so that rake can start at an intuitive angle */
 
888
        float last_x, last_y;
 
889
        float last_angle;
 
890
 
 
891
        float special_rotation;
 
892
 
 
893
        // all this below is used to communicate with the cursor drawing routine
 
894
        int draw_anchored;
 
895
        int   anchored_size;
 
896
        float anchored_location[3];
 
897
        float anchored_initial_mouse[2];
 
898
 
 
899
        /* drawing pressure */
 
900
        int draw_pressure;
 
901
        float pressure_value;
854
902
} UnifiedPaintSettings;
855
903
 
856
904
typedef enum {
857
905
        UNIFIED_PAINT_SIZE  = (1<<0),
858
906
        UNIFIED_PAINT_ALPHA = (1<<1),
 
907
        UNIFIED_PAINT_WEIGHT = (1<<5),
859
908
 
860
909
        /* only used if unified size is enabled, mirros the brush flags
861
910
         * BRUSH_LOCK_SIZE and BRUSH_SIZE_PRESSURE */
876
925
        Sculpt *sculpt;
877
926
        UvSculpt *uvsculpt;     /* uv smooth */
878
927
        
879
 
        /* Vertex groups */
 
928
        /* Vertex group weight - used only for editmode, not weight
 
929
         * paint */
880
930
        float vgroup_weight;
881
931
 
882
932
        /* Subdivide Settings */
883
933
        short cornertype;
884
 
        short pad3;
 
934
        short pad1;
885
935
        /*Triangle to Quad conversion threshold*/
886
936
        float jointrilimit;
887
937
        /* Editmode Tools */
914
964
        short uvcalc_mapalign;
915
965
        short uvcalc_flag;
916
966
        short uv_flag, uv_selectmode;
917
 
        short uv_subsurf_level;
 
967
        short pad2;
918
968
        
919
969
        /* Grease Pencil */
920
970
        short gpencil_flags;
942
992
 
943
993
        /* Multires */
944
994
        char multires_subdiv_type;
945
 
        char pad2[5];
 
995
        char pad3[5];
946
996
 
947
997
        /* Skeleton generation */
948
998
        short skgen_resolution;
977
1027
        char edge_mode_live_unwrap;
978
1028
 
979
1029
        /* Transform */
980
 
        char snap_mode;
 
1030
        char snap_mode, snap_node_mode;
 
1031
        char snap_uv_mode;
981
1032
        short snap_flag, snap_target;
982
1033
        short proportional, prop_mode;
983
1034
        char proportional_objects; /* proportional edit, object mode */
984
 
        char pad[5];
 
1035
        char proportional_mask; /* proportional edit, object mode */
 
1036
        char pad4[2];
985
1037
 
986
1038
        char auto_normalize; /*auto normalizing mode in wpaint*/
987
1039
        char multipaint; /* paint multiple bones in wpaint */
993
1045
        int uv_relax_method;
994
1046
        /* XXX: these sculpt_paint_* fields are deprecated, use the
995
1047
         * unified_paint_settings field instead! */
996
 
        short sculpt_paint_settings DNA_DEPRECATED;     short pad1;
 
1048
        short sculpt_paint_settings DNA_DEPRECATED;     short pad5;
997
1049
        int sculpt_paint_unified_size DNA_DEPRECATED;
998
1050
        float sculpt_paint_unified_unprojected_radius DNA_DEPRECATED;
999
1051
        float sculpt_paint_unified_alpha DNA_DEPRECATED;
1021
1073
        /* Display/Editing unit options for each scene */
1022
1074
        float scale_length; /* maybe have other unit conversions? */
1023
1075
        char system; /* imperial, metric etc */
1024
 
        char system_rotation; /* not implemented as a propper unit system yet */
 
1076
        char system_rotation; /* not implemented as a proper unit system yet */
1025
1077
        short flag;
1026
1078
} UnitSettings;
1027
1079
 
1061
1113
        
1062
1114
        short use_nodes;
1063
1115
        
1064
 
        struct bNodeTree *nodetree;     
 
1116
        struct bNodeTree *nodetree;
1065
1117
        
1066
1118
        struct Editing *ed;                                                             /* sequence editor data is allocated here */
1067
1119
        
1111
1163
        /* Movie Tracking */
1112
1164
        struct MovieClip *clip;                 /* active movie clip */
1113
1165
 
1114
 
        uint64_t customdata_mask;       /* XXX. runtime flag for drawing, actually belongs in the window, only used by object_handle_update() */
 
1166
        uint64_t customdata_mask;       /* XXX. runtime flag for drawing, actually belongs in the window, only used by BKE_object_handle_update() */
1115
1167
        uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */
 
1168
 
 
1169
        /* Color Management */
 
1170
        ColorManagedViewSettings view_settings;
 
1171
        ColorManagedDisplaySettings display_settings;
 
1172
        ColorManagedColorspaceSettings sequencer_colorspace_settings;
 
1173
        
 
1174
        /* RigidBody simulation world+settings */
 
1175
        struct RigidBodyWorld *rigidbody_world;
1116
1176
} Scene;
1117
1177
 
1118
1178
 
1131
1191
#define R_EDGE                  0x0020
1132
1192
#define R_FIELDS                0x0040
1133
1193
#define R_FIELDSTILL    0x0080
1134
 
#define R_RADIO                 0x0100
 
1194
/*#define R_RADIO                       0x0100 */ /* deprecated */
1135
1195
#define R_BORDER                0x0200
1136
1196
#define R_PANORAMA              0x0400  /* deprecated as scene option, still used in renderer */
1137
1197
#define R_CROP                  0x0800
1149
1209
                /* Use the same flag for autothreads */
1150
1210
#define R_FIXED_THREADS         0x80000 
1151
1211
 
1152
 
#define R_SPEED                 0x100000
1153
 
#define R_SSS                   0x200000
1154
 
#define R_NO_OVERWRITE  0x400000 /* skip existing files */
1155
 
#define R_TOUCH                 0x800000 /* touch files before rendering */
1156
 
#define R_SIMPLIFY              0x1000000
 
1212
#define R_SPEED                         0x100000
 
1213
#define R_SSS                           0x200000
 
1214
#define R_NO_OVERWRITE          0x400000  /* skip existing files */
 
1215
#define R_TOUCH                         0x800000  /* touch files before rendering */
 
1216
#define R_SIMPLIFY                      0x1000000
 
1217
#define R_EDGE_FRS                      0x2000000 /* R_EDGE reserved for Freestyle */
 
1218
#define R_PERSISTENT_DATA       0x4000000 /* keep data around for re-render */
1157
1219
 
1158
1220
/* seq_flag */
1159
1221
#define R_SEQ_GL_PREV 1
1160
 
#define R_SEQ_GL_REND 2
 
1222
// #define R_SEQ_GL_REND 2  // UNUSED, opengl render has its own operator now.
 
1223
#define R_SEQ_SOLID_TEX 4
1161
1224
 
1162
1225
/* displaymode */
1163
1226
 
1231
1294
/* alphamode */
1232
1295
#define R_ADDSKY                0
1233
1296
#define R_ALPHAPREMUL   1
1234
 
#define R_ALPHAKEY              2
 
1297
/*#define R_ALPHAKEY            2*/ /* deprecated, shouldn't be used */
1235
1298
 
1236
1299
/* color_mgt_flag */
1237
 
#define R_COLOR_MANAGEMENT              (1 << 0)
1238
 
#define R_COLOR_MANAGEMENT_PREDIVIDE    (1 << 1)
 
1300
#define R_COLOR_MANAGEMENT              (1 << 0)  /* deprecated, should only be used in versioning code only */
 
1301
/*#define R_COLOR_MANAGEMENT_PREDIVIDE    (1 << 1)*/  /* deprecated, shouldn't be used */
1239
1302
 
1240
1303
/* subimtype, flag options for imtype */
1241
1304
#define R_OPENEXR_HALF    1                                      /*deprecated*/
1258
1321
#define R_BAKE_NORMALIZE        8
1259
1322
#define R_BAKE_MULTIRES         16
1260
1323
#define R_BAKE_LORES_MESH       32
 
1324
#define R_BAKE_VCOL                     64
1261
1325
 
1262
1326
/* bake_normal_space */
1263
1327
#define R_BAKE_SPACE_CAMERA      0
1271
1335
/* sequencer seq_prev_type seq_rend_type */
1272
1336
 
1273
1337
 
 
1338
 
1274
1339
/* **************** SCENE ********************* */
1275
1340
 
1276
1341
/* for general use */
1288
1353
#define TESTBASE(v3d, base)  (                                                \
1289
1354
        ((base)->flag & SELECT) &&                                                \
1290
1355
        ((base)->lay & v3d->lay) &&                                               \
1291
 
        (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0)  )
 
1356
        (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0))
1292
1357
#define TESTBASELIB(v3d, base)  (                                             \
1293
1358
        ((base)->flag & SELECT) &&                                                \
1294
1359
        ((base)->lay & v3d->lay) &&                                               \
1295
 
        ((base)->object->id.lib==NULL) &&                                         \
1296
 
        (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0)  )
 
1360
        ((base)->object->id.lib == NULL) &&                                       \
 
1361
        (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0))
1297
1362
#define TESTBASELIB_BGMODE(v3d, scene, base)  (                               \
1298
1363
        ((base)->flag & SELECT) &&                                                \
1299
1364
        ((base)->lay & (v3d ? v3d->lay : scene->lay)) &&                          \
1300
 
        ((base)->object->id.lib==NULL) &&                                         \
1301
 
        (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0)  )
 
1365
        ((base)->object->id.lib == NULL) &&                                       \
 
1366
        (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0))
1302
1367
#define BASE_EDITABLE_BGMODE(v3d, scene, base)  (                             \
1303
1368
        ((base)->lay & (v3d ? v3d->lay : scene->lay)) &&                          \
1304
 
        ((base)->object->id.lib==NULL) &&                                         \
1305
 
        (((base)->object->restrictflag & OB_RESTRICT_VIEW)==0))
 
1369
        ((base)->object->id.lib == NULL) &&                                       \
 
1370
        (((base)->object->restrictflag & OB_RESTRICT_VIEW) == 0))
1306
1371
#define BASE_SELECTABLE(v3d, base)  (                                         \
1307
1372
        (base->lay & v3d->lay) &&                                                 \
1308
 
        (base->object->restrictflag & (OB_RESTRICT_SELECT|OB_RESTRICT_VIEW))==0  )
 
1373
        (base->object->restrictflag & (OB_RESTRICT_SELECT | OB_RESTRICT_VIEW)) == 0)
1309
1374
#define BASE_VISIBLE(v3d, base)  (                                            \
1310
1375
        (base->lay & v3d->lay) &&                                                 \
1311
 
        (base->object->restrictflag & OB_RESTRICT_VIEW)==0  )
 
1376
        (base->object->restrictflag & OB_RESTRICT_VIEW) == 0)
1312
1377
 
1313
1378
#define FIRSTBASE               scene->base.first
1314
1379
#define LASTBASE                scene->base.last
1315
1380
#define BASACT                  (scene->basact)
1316
 
#define OBACT                   (BASACT? BASACT->object: NULL)
 
1381
#define OBACT                   (BASACT ? BASACT->object: NULL)
1317
1382
 
1318
1383
#define V3D_CAMERA_LOCAL(v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : NULL)
1319
1384
#define V3D_CAMERA_SCENE(scene, v3d) ((!(v3d)->scenelock && (v3d)->camera) ? (v3d)->camera : (scene)->camera)
1320
1385
 
1321
 
#define ID_NEW(a)               if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
1322
 
#define ID_NEW_US(a)    if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
1323
 
#define ID_NEW_US2(a)   if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}
1324
 
#define CFRA                    (scene->r.cfra)
1325
 
#define SUBFRA                  (scene->r.subframe)
1326
 
#define SFRA                    (scene->r.sfra)
1327
 
#define EFRA                    (scene->r.efra)
1328
 
#define PRVRANGEON              (scene->r.flag & SCER_PRV_RANGE)
1329
 
#define PSFRA                   ((PRVRANGEON)? (scene->r.psfra): (scene->r.sfra))
1330
 
#define PEFRA                   ((PRVRANGEON)? (scene->r.pefra): (scene->r.efra))
1331
 
#define FRA2TIME(a)           ((((double) scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec)
1332
 
#define TIME2FRA(a)           ((((double) scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base)
1333
 
#define FPS                     (((double) scene->r.frs_sec) / (double)scene->r.frs_sec_base)
1334
 
 
1335
 
#define RAD_PHASE_PATCHES       1
1336
 
#define RAD_PHASE_FACES         2
 
1386
#define CFRA            (scene->r.cfra)
 
1387
#define SUBFRA          (scene->r.subframe)
 
1388
#define SFRA            (scene->r.sfra)
 
1389
#define EFRA            (scene->r.efra)
 
1390
#define PRVRANGEON      (scene->r.flag & SCER_PRV_RANGE)
 
1391
#define PSFRA           ((PRVRANGEON) ? (scene->r.psfra) : (scene->r.sfra))
 
1392
#define PEFRA           ((PRVRANGEON) ? (scene->r.pefra) : (scene->r.efra))
 
1393
#define FRA2TIME(a)     ((((double) scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec)
 
1394
#define TIME2FRA(a)     ((((double) scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base)
 
1395
#define FPS              (((double) scene->r.frs_sec) / (double)scene->r.frs_sec_base)
1337
1396
 
1338
1397
/* base->flag is in DNA_object_types.h */
1339
1398
 
1354
1413
#define SCE_SNAP_MODE_EDGE              2
1355
1414
#define SCE_SNAP_MODE_FACE              3
1356
1415
#define SCE_SNAP_MODE_VOLUME    4
 
1416
#define SCE_SNAP_MODE_NODE_X    5
 
1417
#define SCE_SNAP_MODE_NODE_Y    6
 
1418
#define SCE_SNAP_MODE_NODE_XY   7
1357
1419
 
1358
1420
/* toolsettings->selectmode */
1359
1421
#define SCE_SELECT_VERTEX       1 /* for mesh */
1390
1452
#define SCE_FRAME_DROP                  (1<<3)
1391
1453
 
1392
1454
 
1393
 
        /* return flag next_object function */
 
1455
        /* return flag BKE_scene_base_iter_next function */
1394
1456
#define F_ERROR                 -1
1395
1457
#define F_START                 0
1396
1458
#define F_SCENE                 1
1408
1470
 
1409
1471
/* Paint.flags */
1410
1472
typedef enum {
1411
 
        PAINT_SHOW_BRUSH = (1<<0),
1412
 
        PAINT_FAST_NAVIGATE = (1<<1),
1413
 
        PAINT_SHOW_BRUSH_ON_SURFACE = (1<<2),
 
1473
        PAINT_SHOW_BRUSH = (1 << 0),
 
1474
        PAINT_FAST_NAVIGATE = (1 << 1),
 
1475
        PAINT_SHOW_BRUSH_ON_SURFACE = (1 << 2),
1414
1476
} PaintFlags;
1415
1477
 
1416
1478
/* Sculpt.flags */
1425
1487
        SCULPT_SYMMETRY_FEATHER = (1<<6),
1426
1488
        SCULPT_USE_OPENMP = (1<<7),
1427
1489
        SCULPT_ONLY_DEFORM = (1<<8),
 
1490
        SCULPT_SHOW_DIFFUSE = (1<<9),
 
1491
 
 
1492
        /* If set, the mesh will be drawn with smooth-shading in
 
1493
         * dynamic-topology mode */
 
1494
        SCULPT_DYNTOPO_SMOOTH_SHADING = (1<<10),
 
1495
 
 
1496
        /* If set, dynamic-topology brushes will collapse short edges in
 
1497
         * addition to subdividing long ones */
 
1498
        SCULPT_DYNTOPO_COLLAPSE = (1<<11)
1428
1499
} SculptFlags;
1429
1500
 
1430
1501
/* ImagePaintSettings.flag */
1561
1632
}
1562
1633
#endif
1563
1634
 
1564
 
#endif
 
1635
#endif  /* __DNA_SCENE_TYPES_H__ */