DNA Deprecation: add DNA_DEPRECATED_GCC_POISON for enum/structs.

also fully remove freestyle raycasting_algorithm
This commit is contained in:
2013-12-10 12:59:04 +11:00
parent 96f95e0223
commit cc9372b7e0
24 changed files with 245 additions and 149 deletions

View File

@@ -83,7 +83,6 @@ void BKE_freestyle_config_copy(FreestyleConfig *new_config, FreestyleConfig *con
FreestyleModuleConfig *module, *new_module;
new_config->mode = config->mode;
new_config->raycasting_algorithm = config->raycasting_algorithm; /* deprecated */
new_config->flags = config->flags;
new_config->sphere_radius = config->sphere_radius;
new_config->dkr_epsilon = config->dkr_epsilon;

View File

@@ -3525,7 +3525,7 @@ ModifierData *object_add_particle_system(Scene *scene, Object *ob, const char *n
BLI_addtail(&ob->modifiers, md);
psys->totpart = 0;
psys->flag = PSYS_ENABLED | PSYS_CURRENT;
psys->flag = PSYS_CURRENT;
psys->cfra = BKE_scene_frame_get_from_ctime(scene, CFRA + 1);
DAG_relations_tag_update(G.main);

View File

@@ -536,7 +536,7 @@ void smokeModifier_createType(struct SmokeModifierData *smd)
smd->domain->time_scale = 1.0;
smd->domain->vorticity = 2.0;
smd->domain->border_collisions = SM_BORDER_OPEN; // open domain
smd->domain->flags = MOD_SMOKE_DISSOLVE_LOG | MOD_SMOKE_HIGH_SMOOTH;
smd->domain->flags = MOD_SMOKE_DISSOLVE_LOG;
smd->domain->highres_sampling = SM_HRES_FULLSAMPLE;
smd->domain->strength = 2.0;
smd->domain->noise = MOD_SMOKE_NOISEWAVE;

View File

@@ -3079,7 +3079,7 @@ void blo_do_versions_pre250(FileData *fd, Library *lib, Main *main)
part->id.flag |= (ob->id.flag & LIB_NEED_LINK);
psys->totpart = 0;
psys->flag = PSYS_ENABLED|PSYS_CURRENT;
psys->flag = PSYS_CURRENT;
BLI_addtail(&ob->particlesystem, psys);

View File

@@ -30,6 +30,7 @@
#ifndef __DNA_ARMATURE_TYPES_H__
#define __DNA_ARMATURE_TYPES_H__
#include "DNA_defs.h"
#include "DNA_listBase.h"
#include "DNA_ID.h"
@@ -156,6 +157,10 @@ typedef enum eArmature_DeformFlag {
ARM_DEF_INVERT_VGROUP = (1<<4)
} eArmature_DeformFlag;
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison ARM_DEF_B_BONE_REST
#endif
/* armature->pathflag */
// XXX deprecated... old animation system (armature only viz)
typedef enum eArmature_PathFlag {
@@ -166,6 +171,10 @@ typedef enum eArmature_PathFlag {
ARM_PATH_KFNOS = (1<<4)
} eArmature_PathFlag;
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison ARM_PATH_FNUMS ARM_PATH_KFRAS ARM_PATH_HEADS ARM_PATH_ACFRA ARM_PATH_KFNOS
#endif
/* armature->ghosttype */
// XXX deprecated... old animation system (armature only viz)
typedef enum eArmature_GhostType {

View File

@@ -73,38 +73,50 @@ typedef struct Camera {
/* **************** CAMERA ********************* */
/* type */
#define CAM_PERSP 0
#define CAM_ORTHO 1
#define CAM_PANO 2
enum {
CAM_PERSP = 0,
CAM_ORTHO = 1,
CAM_PANO = 2,
};
/* dtx */
#define CAM_DTX_CENTER 1
#define CAM_DTX_CENTER_DIAG 2
#define CAM_DTX_THIRDS 4
#define CAM_DTX_GOLDEN 8
#define CAM_DTX_GOLDEN_TRI_A 16
#define CAM_DTX_GOLDEN_TRI_B 32
#define CAM_DTX_HARMONY_TRI_A 64
#define CAM_DTX_HARMONY_TRI_B 128
enum {
CAM_DTX_CENTER = (1 << 0),
CAM_DTX_CENTER_DIAG = (1 << 1),
CAM_DTX_THIRDS = (1 << 2),
CAM_DTX_GOLDEN = (1 << 3),
CAM_DTX_GOLDEN_TRI_A = (1 << 4),
CAM_DTX_GOLDEN_TRI_B = (1 << 5),
CAM_DTX_HARMONY_TRI_A = (1 << 6),
CAM_DTX_HARMONY_TRI_B = (1 << 7),
};
/* flag */
#define CAM_SHOWLIMITS 1
#define CAM_SHOWMIST 2
#define CAM_SHOWPASSEPARTOUT 4
#define CAM_SHOWTITLESAFE 8
#define CAM_SHOWNAME 16
#define CAM_ANGLETOGGLE 32
#define CAM_DS_EXPAND 64
#define CAM_PANORAMA 128 /* deprecated */
#define CAM_SHOWSENSOR 256
enum {
CAM_SHOWLIMITS = (1 << 0),
CAM_SHOWMIST = (1 << 1),
CAM_SHOWPASSEPARTOUT = (1 << 2),
CAM_SHOWTITLESAFE = (1 << 3),
CAM_SHOWNAME = (1 << 4),
CAM_ANGLETOGGLE = (1 << 5),
CAM_DS_EXPAND = (1 << 6),
CAM_PANORAMA = (1 << 7), /* deprecated */
CAM_SHOWSENSOR = (1 << 8),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison CAM_PANORAMA
#endif
/* yafray: dof sampling switch */
/* #define CAM_YF_NO_QMC 512 */ /* deprecated */
/* Sensor fit */
#define CAMERA_SENSOR_FIT_AUTO 0
#define CAMERA_SENSOR_FIT_HOR 1
#define CAMERA_SENSOR_FIT_VERT 2
enum {
CAMERA_SENSOR_FIT_AUTO = 0,
CAMERA_SENSOR_FIT_HOR = 1,
CAMERA_SENSOR_FIT_VERT = 2,
};
#define DEFAULT_SENSOR_WIDTH 32.0f
#define DEFAULT_SENSOR_HEIGHT 18.0f

View File

@@ -44,6 +44,20 @@
# endif
#endif
/* poison pragma */
#ifdef DNA_DEPRECATED_ALLOW
# define DNA_DEPRECATED_GCC_POISON 0
#else
/* enable the pragma if we can */
# ifdef __GNUC__
# define DNA_DEPRECATED_GCC_POISON 1
# else
# define DNA_DEPRECATED_GCC_POISON 0
# endif
#endif
/* hrmf, we need a better include then this */
#include "../blenlib/BLI_sys_types.h" /* needed for int64_t only! */

View File

@@ -32,6 +32,7 @@
* \ingroup DNA
*/
#include "DNA_defs.h"
#include "DNA_listBase.h"
#ifdef __cplusplus
@@ -126,7 +127,7 @@ typedef struct FreestyleConfig {
ListBase modules;
int mode; /* scripting, editor */
int raycasting_algorithm; /* XXX deprecated */
int raycasting_algorithm DNA_DEPRECATED;
int flags; /* suggestive contours, ridges/valleys, material boundaries */
float sphere_radius;
float dkr_epsilon;

View File

@@ -147,14 +147,14 @@ typedef struct bGPdata {
// XXX many of these flags should be deprecated for more general ideas in 2.5
/* don't allow painting to occur at all */
// XXX is deprecated - not well understood
#define GP_DATA_LMBPLOCK (1<<0)
// #define GP_DATA_LMBPLOCK (1<<0)
/* show debugging info in viewport (i.e. status print) */
#define GP_DATA_DISPINFO (1<<1)
/* in Action Editor, show as expanded channel */
#define GP_DATA_EXPAND (1<<2)
/* is the block overriding all clicks? */
// XXX is deprecated - nasty old concept
#define GP_DATA_EDITPAINT (1<<3)
// #define GP_DATA_EDITPAINT (1<<3)
/* new strokes are added in viewport space */
#define GP_DATA_VIEWALIGN (1<<4)
/* Project into the screens Z values */

View File

@@ -32,6 +32,7 @@
#ifndef __DNA_IMAGE_TYPES_H__
#define __DNA_IMAGE_TYPES_H__
#include "DNA_defs.h"
#include "DNA_ID.h"
#include "DNA_color_types.h" /* for color management */
@@ -122,18 +123,24 @@ typedef struct Image {
/* **************** IMAGE ********************* */
/* Image.flag */
#define IMA_FIELDS 1
#define IMA_STD_FIELD 2
#define IMA_DO_PREMUL 4 /* deprecated, should not be used */
#define IMA_REFLECT 16
#define IMA_NOCOLLECT 32
// #define IMA_DONE_TAG 64 // UNUSED
#define IMA_OLD_PREMUL 128
/*#define IMA_CM_PREDIVIDE 256*/ /* deprecated, should not be used */
#define IMA_USED_FOR_RENDER 512
#define IMA_USER_FRAME_IN_RANGE 1024 /* for image user, but these flags are mixed */
#define IMA_VIEW_AS_RENDER 2048
#define IMA_IGNORE_ALPHA 4096
enum {
IMA_FIELDS = (1 << 0),
IMA_STD_FIELD = (1 << 1),
IMA_DO_PREMUL = (1 << 2), /* deprecated, should not be used */
IMA_REFLECT = (1 << 4),
IMA_NOCOLLECT = (1 << 5),
//IMA_DONE_TAG = (1 << 6), // UNUSED
IMA_OLD_PREMUL = (1 << 7),
// IMA_CM_PREDIVIDE = (1 << 8), /* deprecated, should not be used */
IMA_USED_FOR_RENDER = (1 << 9),
IMA_USER_FRAME_IN_RANGE = (1 << 10), /* for image user, but these flags are mixed */
IMA_VIEW_AS_RENDER = (1 << 11),
IMA_IGNORE_ALPHA = (1 << 12),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison IMA_DO_PREMUL
#endif
/* Image.tpageflag */
#define IMA_TILES 1

View File

@@ -140,6 +140,10 @@ typedef struct TFace {
short mode, tile, unwrap;
} TFace;
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison TFace
#endif
/* **************** MESH ********************* */
/* texflag */
@@ -164,7 +168,7 @@ typedef struct TFace {
/* me->flag */
/* #define ME_ISDONE 1 */
#define ME_DEPRECATED 2
/* #define ME_DEPRECATED 2 */
#define ME_TWOSIDED 4
#define ME_UVEFFECT 8
#define ME_VCOLEFFECT 16

View File

@@ -358,8 +358,8 @@ enum {
/* mtface->flag */
enum {
TF_SELECT = (1 << 0), /* use MFace hide flag (after 2.43), should be able to reuse after 2.44 */
TF_ACTIVE = (1 << 1), /* deprecated! */
// TF_SELECT = (1 << 0), /* use MFace hide flag (after 2.43), should be able to reuse after 2.44 */
// TF_ACTIVE = (1 << 1), /* deprecated! */
TF_SEL1 = (1 << 2),
TF_SEL2 = (1 << 3),
TF_SEL3 = (1 << 4),
@@ -377,7 +377,7 @@ enum {
TF_CONVERTED = (1 << 5), /* tface converted to material */
TF_SHAREDCOL = (1 << 6),
TF_TILES = (1 << 7), /* deprecated */
// TF_TILES = (1 << 7), /* deprecated */
TF_BILLBOARD = (1 << 8),
TF_TWOSIDE = (1 << 9),
TF_INVISIBLE = (1 << 10),

View File

@@ -819,6 +819,10 @@ enum {
MOD_SOLIDIFY_FLIP = (1 << 5),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison MOD_SOLIDIFY_RIM_MATERIAL
#endif
typedef struct ScrewModifierData {
ModifierData modifier;
@@ -1190,6 +1194,10 @@ enum {
MOD_TRIANGULATE_BEAUTY = (1 << 0), /* deprecated */
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison MOD_TRIANGULATE_BEAUTY
#endif
/* Triangulate methods - NGons */
enum {
MOD_TRIANGULATE_NGON_BEAUTY = 0,

View File

@@ -153,8 +153,8 @@ typedef enum eNodeSocketFlag {
SOCK_HIDDEN = 2, /* hidden is user defined, to hide unused */
SOCK_IN_USE = 4, /* for quick check if socket is linked */
SOCK_UNAVAIL = 8, /* unavailable is for dynamic sockets */
__SOCK_DYNAMIC = 16, /* DEPRECATED dynamic socket (can be modified by user) */
__SOCK_INTERNAL = 32, /* DEPRECATED group socket should not be exposed */
// SOCK_DYNAMIC = 16, /* DEPRECATED dynamic socket (can be modified by user) */
// SOCK_INTERNAL = 32, /* DEPRECATED group socket should not be exposed */
SOCK_COLLAPSED = 64, /* socket collapsed in UI */
SOCK_HIDE_VALUE = 128, /* hide socket value, if it gets auto default */
SOCK_AUTO_HIDDEN__DEPRECATED = 256 /* socket hidden automatically, to distinguish from manually hidden */
@@ -227,7 +227,7 @@ typedef struct bNode {
#define NODE_TEST 256
/* node is disabled */
#define NODE_MUTED 512
#define NODE_CUSTOM_NAME 1024 /* deprecated! */
// #define NODE_CUSTOM_NAME 1024 /* deprecated! */
/* group node types: use const outputs by default */
#define NODE_CONST_OUTPUT (1<<11)
/* node is always behind others */
@@ -966,9 +966,15 @@ typedef struct NodeShaderNormalMap {
#define SHD_NORMAL_MAP_BLENDER_WORLD 4
/* subsurface */
#define SHD_SUBSURFACE_COMPATIBLE 0 // Deprecated
#define SHD_SUBSURFACE_CUBIC 1
#define SHD_SUBSURFACE_GAUSSIAN 2
enum {
SHD_SUBSURFACE_COMPATIBLE = 0, // Deprecated
SHD_SUBSURFACE_CUBIC = 1,
SHD_SUBSURFACE_GAUSSIAN = 2,
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison SHD_SUBSURFACE_COMPATIBLE
#endif
/* blur node */
#define CMP_NODE_BLUR_ASPECT_NONE 0

View File

@@ -609,7 +609,7 @@ enum {
/* ob->shapeflag */
enum {
OB_SHAPE_LOCK = 1 << 0,
OB_SHAPE_TEMPLOCK = 1 << 1, /* deprecated */
// OB_SHAPE_TEMPLOCK = 1 << 1, /* deprecated */
OB_SHAPE_EDIT_MODE = 1 << 2,
};

View File

@@ -509,7 +509,7 @@ typedef struct ParticleSystem {
#define PSYS_GLOBAL_HAIR 2
#define PSYS_HAIR_DYNAMICS 4
#define PSYS_KEYED_TIMING 8
#define PSYS_ENABLED 16 /* deprecated */
//#define PSYS_ENABLED 16 /* deprecated */
#define PSYS_HAIR_UPDATED 32 /* signal for updating hair particle mode */
#define PSYS_DRAWING 64
#define PSYS_USE_IMAT 128

View File

@@ -196,7 +196,7 @@ typedef struct SceneRenderLayer {
#define SCE_LAY_SOLID 1
#define SCE_LAY_ZTRA 2
#define SCE_LAY_HALO 4
#define SCE_LAY_EDGE 8 /* deprecated */
// #define SCE_LAY_EDGE 8 /* deprecated */
#define SCE_LAY_SKY 16
#define SCE_LAY_STRAND 32
#define SCE_LAY_FRS 64
@@ -725,9 +725,15 @@ typedef struct GameData {
#define GAME_PLAYER_DESKTOP_RESOLUTION (1 << 1)
/* GameData.matmode */
#define GAME_MAT_TEXFACE 0 /* deprecated */
#define GAME_MAT_MULTITEX 1
#define GAME_MAT_GLSL 2
enum {
GAME_MAT_TEXFACE = 0, /* deprecated */
GAME_MAT_MULTITEX = 1,
GAME_MAT_GLSL = 2,
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison GAME_MAT_TEXFACE
#endif
/* UV Paint */
#define UV_SCULPT_LOCK_BORDERS 1
@@ -1223,7 +1229,7 @@ typedef struct Scene {
#define R_GAMMA 0x0004
#define R_ORTHO 0x0008
#define R_ENVMAP 0x0010
#define R_EDGE 0x0020 /* deprecated */
/*#define R_EDGE 0x0020 deprecated */
#define R_FIELDS 0x0040
#define R_FIELDSTILL 0x0080
/*#define R_RADIO 0x0100 */ /* deprecated */
@@ -1333,21 +1339,36 @@ typedef struct Scene {
/*#define R_ALPHAKEY 2*/ /* deprecated, shouldn't be used */
/* color_mgt_flag */
#define R_COLOR_MANAGEMENT (1 << 0) /* deprecated, should only be used in versioning code only */
/*#define R_COLOR_MANAGEMENT_PREDIVIDE (1 << 1)*/ /* deprecated, shouldn't be used */
enum {
R_COLOR_MANAGEMENT = (1 << 0), /* deprecated, should only be used in versioning code only */
/*R_COLOR_MANAGEMENT_PREDIVIDE = (1 << 1)*/ /* deprecated, shouldn't be used */
};
#if 0 /* TODO */
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison R_COLOR_MANAGEMENT
#endif
#endif
/* subimtype, flag options for imtype */
#define R_OPENEXR_HALF 1 /*deprecated*/
#define R_OPENEXR_ZBUF 2 /*deprecated*/
#define R_PREVIEW_JPG 4 /*deprecated*/
#define R_CINEON_LOG 8 /*deprecated*/
#define R_TIFF_16BIT 16 /*deprecated*/
enum {
R_OPENEXR_HALF = 1, /*deprecated*/
R_OPENEXR_ZBUF = 2, /*deprecated*/
R_PREVIEW_JPG = 4, /*deprecated*/
R_CINEON_LOG = 8, /*deprecated*/
R_TIFF_16BIT = 16, /*deprecated*/
#define R_JPEG2K_12BIT 32 /* Jpeg2000 */ /*deprecated*/
#define R_JPEG2K_16BIT 64 /*deprecated*/
#define R_JPEG2K_YCC 128 /* when disabled use RGB */ /*deprecated*/
#define R_JPEG2K_CINE_PRESET 256 /*deprecated*/
#define R_JPEG2K_CINE_48FPS 512 /*deprecated*/
R_JPEG2K_12BIT = 32, /* Jpeg2000 */ /*deprecated*/
R_JPEG2K_16BIT = 64, /*deprecated*/
R_JPEG2K_YCC = 128, /* when disabled use RGB */ /*deprecated*/
R_JPEG2K_CINE_PRESET = 256, /*deprecated*/
R_JPEG2K_CINE_48FPS = 512, /*deprecated*/
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison R_OPENEXR_HALF R_OPENEXR_ZBUF R_PREVIEW_JPG R_CINEON_LOG R_TIFF_16BIT
#pragma GCC poison R_JPEG2K_12BIT R_JPEG2K_16BIT R_JPEG2K_YCC R_JPEG2K_CINE_PRESET R_JPEG2K_CINE_48FPS
#endif
/* bake_mode: same as RE_BAKE_xxx defines */
/* bake_flag: */
@@ -1542,9 +1563,16 @@ typedef enum eVGroupSelect {
#define AUDIO_SCRUB (1<<2)
#define AUDIO_VOLUME_ANIMATED (1<<3)
#define FFMPEG_MULTIPLEX_AUDIO 1 /* deprecated, you can choose none as audiocodec now */
#define FFMPEG_AUTOSPLIT_OUTPUT 2
#define FFMPEG_LOSSLESS_OUTPUT 4
enum {
FFMPEG_MULTIPLEX_AUDIO = 1, /* deprecated, you can choose none as audiocodec now */
FFMPEG_AUTOSPLIT_OUTPUT = 2,
FFMPEG_LOSSLESS_OUTPUT = 4,
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison FFMPEG_MULTIPLEX_AUDIO
#endif
/* Paint.flags */
typedef enum {
@@ -1590,6 +1618,11 @@ typedef enum SculptFlags {
SCULPT_DYNTOPO_COLLAPSE = (1 << 11)
} SculptFlags;
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison SCULPT_SYMM_X SCULPT_SYMM_Y SCULPT_SYMM_Z SCULPT_SYMMETRY_FEATHER
#endif
/* ImagePaintSettings.flag */
#define IMAGEPAINT_DRAWING 1
// #define IMAGEPAINT_DRAW_TOOL 2 // deprecated

View File

@@ -325,37 +325,43 @@ typedef struct SequencerScopes {
#define SEQ_NAME_MAXSTR 64
/* seq->flag */
#define SEQ_LEFTSEL (1 << 1)
#define SEQ_RIGHTSEL (1 << 2)
#define SEQ_OVERLAP (1 << 3)
#define SEQ_FILTERY (1 << 4)
#define SEQ_MUTE (1 << 5)
#define SEQ_MAKE_PREMUL (1 << 6) /* deprecated, used for compatibility code only */
#define SEQ_REVERSE_FRAMES (1 << 7)
#define SEQ_IPO_FRAME_LOCKED (1 << 8)
#define SEQ_EFFECT_NOT_LOADED (1 << 9)
#define SEQ_FLAG_DELETE (1 << 10)
#define SEQ_FLIPX (1 << 11)
#define SEQ_FLIPY (1 << 12)
#define SEQ_MAKE_FLOAT (1 << 13)
#define SEQ_LOCK (1 << 14)
#define SEQ_USE_PROXY (1 << 15)
#define SEQ_USE_TRANSFORM (1 << 16)
#define SEQ_USE_CROP (1 << 17)
/* #define SEQ_USE_COLOR_BALANCE (1 << 18) */ /* DEPRECATED */
#define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19)
enum {
SEQ_LEFTSEL = (1 << 1),
SEQ_RIGHTSEL = (1 << 2),
SEQ_OVERLAP = (1 << 3),
SEQ_FILTERY = (1 << 4),
SEQ_MUTE = (1 << 5),
SEQ_MAKE_PREMUL = (1 << 6), /* deprecated, used for compatibility code only */
SEQ_REVERSE_FRAMES = (1 << 7),
SEQ_IPO_FRAME_LOCKED = (1 << 8),
SEQ_EFFECT_NOT_LOADED = (1 << 9),
SEQ_FLAG_DELETE = (1 << 10),
SEQ_FLIPX = (1 << 11),
SEQ_FLIPY = (1 << 12),
SEQ_MAKE_FLOAT = (1 << 13),
SEQ_LOCK = (1 << 14),
SEQ_USE_PROXY = (1 << 15),
SEQ_USE_TRANSFORM = (1 << 16),
SEQ_USE_CROP = (1 << 17),
/* SEQ_USE_COLOR_BALANCE = (1 << 18), */ /* DEPRECATED */
SEQ_USE_PROXY_CUSTOM_DIR = (1 << 19),
#define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21)
#define SEQ_USE_EFFECT_DEFAULT_FADE (1 << 22)
#define SEQ_USE_LINEAR_MODIFIERS (1 << 23)
SEQ_USE_PROXY_CUSTOM_FILE = (1 << 21),
SEQ_USE_EFFECT_DEFAULT_FADE = (1 << 22),
SEQ_USE_LINEAR_MODIFIERS = (1 << 23),
// flags for whether those properties are animated or not
#define SEQ_AUDIO_VOLUME_ANIMATED (1 << 24)
#define SEQ_AUDIO_PITCH_ANIMATED (1 << 25)
#define SEQ_AUDIO_PAN_ANIMATED (1 << 26)
#define SEQ_AUDIO_DRAW_WAVEFORM (1 << 27)
/* flags for whether those properties are animated or not */
SEQ_AUDIO_VOLUME_ANIMATED = (1 << 24),
SEQ_AUDIO_PITCH_ANIMATED = (1 << 25),
SEQ_AUDIO_PAN_ANIMATED = (1 << 26),
SEQ_AUDIO_DRAW_WAVEFORM = (1 << 27),
#define SEQ_INVALID_EFFECT (1 << 31)
SEQ_INVALID_EFFECT = (1 << 31),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison SEQ_MAKE_PREMUL
#endif
/* convenience define for all selection flags */
#define SEQ_ALLSEL (SELECT + SEQ_LEFTSEL + SEQ_RIGHTSEL)

View File

@@ -33,13 +33,19 @@
#define __DNA_SMOKE_TYPES_H__
/* flags */
#define MOD_SMOKE_HIGHRES (1<<1) /* enable high resolution */
#define MOD_SMOKE_DISSOLVE (1<<2) /* let smoke dissolve */
#define MOD_SMOKE_DISSOLVE_LOG (1<<3) /* using 1/x for dissolve */
enum {
MOD_SMOKE_HIGHRES = (1 << 1), /* enable high resolution */
MOD_SMOKE_DISSOLVE = (1 << 2), /* let smoke dissolve */
MOD_SMOKE_DISSOLVE_LOG = (1 << 3), /* using 1/x for dissolve */
#define MOD_SMOKE_HIGH_SMOOTH (1<<5) /* -- Deprecated -- */
#define MOD_SMOKE_FILE_LOAD (1<<6) /* flag for file load */
#define MOD_SMOKE_ADAPTIVE_DOMAIN (1<<7)
MOD_SMOKE_HIGH_SMOOTH = (1 << 5), /* -- Deprecated -- */
MOD_SMOKE_FILE_LOAD = (1 << 6), /* flag for file load */
MOD_SMOKE_ADAPTIVE_DOMAIN = (1 << 7),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison MOD_SMOKE_HIGH_SMOOTH
#endif
/* noise */
#define MOD_SMOKE_NOISEWAVE (1<<0)

View File

@@ -33,6 +33,7 @@
#ifndef __DNA_SOUND_TYPES_H__
#define __DNA_SOUND_TYPES_H__
#include "DNA_defs.h"
#include "DNA_ID.h"
/* stupid... could easily be solved */
@@ -109,14 +110,21 @@ typedef enum eSound_Type {
#endif
/* spacesound->flag */
#define SND_DRAWFRAMES 1
#define SND_CFRA_NUM 2
enum {
SND_DRAWFRAMES = 1,
SND_CFRA_NUM = 2,
};
#define SOUND_FLAGS_3D (1 << 3) /* deprecated! used for sound actuator loading */
#define SOUND_FLAGS_CACHING (1 << 4)
#define SOUND_FLAGS_MONO (1 << 5)
enum {
SOUND_FLAGS_3D = (1 << 3), /* deprecated! used for sound actuator loading */
SOUND_FLAGS_CACHING = (1 << 4),
SOUND_FLAGS_MONO = (1 << 5),
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison SOUND_FLAGS_3D
#endif
/* to DNA_sound_types.h*/
#endif

View File

@@ -455,10 +455,10 @@ typedef enum eScreen_Redraws_Flag {
TIME_ALL_3D_WIN = (1 << 1),
TIME_ALL_ANIM_WIN = (1 << 2),
TIME_ALL_BUTS_WIN = (1 << 3),
TIME_WITH_SEQ_AUDIO = (1 << 4), /* DEPRECATED */
// TIME_WITH_SEQ_AUDIO = (1 << 4), /* DEPRECATED */
TIME_SEQ = (1 << 5),
TIME_ALL_IMAGE_WIN = (1 << 6),
TIME_CONTINUE_PHYSICS = (1 << 7), /* UNUSED */
// TIME_CONTINUE_PHYSICS = (1 << 7), /* UNUSED */
TIME_NODES = (1 << 8),
TIME_CLIPS = (1 << 9),
} eScreen_Redraws_Flag;
@@ -1179,6 +1179,11 @@ typedef enum eSpace_Type {
SPACEICONMAX = SPACE_CLIP
} eSpace_Type;
// TODO: SPACE_SCRIPT
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison SPACE_IMASEL SPACE_SOUND
#endif
#define IMG_SIZE_FALLBACK 256
#endif /* __DNA_SPACE_TYPES_H__ */

View File

@@ -142,7 +142,7 @@ typedef struct World {
/* mode */
#define WO_MIST 1
#define WO_STARS 2 /* deprecated */
//#define WO_STARS 2 /* deprecated */
/*#define WO_DOF 4*/
#define WO_ACTIVITY_CULLING 8
#define WO_ENV_LIGHT 16
@@ -151,10 +151,16 @@ typedef struct World {
#define WO_INDIRECT_LIGHT 128
/* aomix */
#define WO_AOADD 0
#define WO_AOSUB 1 /* deprecated */
#define WO_AOADDSUB 2 /* deprecated */
#define WO_AOMUL 3
enum {
WO_AOADD = 0,
WO_AOSUB = 1, /* deprecated */
WO_AOADDSUB = 2, /* deprecated */
WO_AOMUL = 3,
};
#if (DNA_DEPRECATED_GCC_POISON == 1)
#pragma GCC poison WO_AOSUB WO_AOADDSUB
#endif
/* ao_samp_method - methods for sampling the AO hemi */
#define WO_AOSAMP_CONSTANT 0

View File

@@ -142,7 +142,6 @@ static void rna_FluidSettings_update_type(Main *bmain, Scene *scene, PointerRNA
part->type = PART_FLUID;
psys->part = part;
psys->pointcache = BKE_ptcache_add(&psys->ptcaches);
psys->flag |= PSYS_ENABLED;
BLI_strncpy(psys->name, "FluidParticles", sizeof(psys->name));
BLI_addtail(&ob->particlesystem, psys);

View File

@@ -2655,27 +2655,6 @@ static void rna_def_freestyle_settings(BlenderRNA *brna)
{0, NULL, 0, NULL, NULL}
};
static EnumPropertyItem freestyle_raycasting_algorithm_items[] = {
{FREESTYLE_ALGO_REGULAR, "REGULAR", 0, "Normal Ray Casting", "Consider all FEdges in each ViewEdge"},
{FREESTYLE_ALGO_FAST, "FAST", 0, "Fast Ray Casting", "Sample some FEdges in each ViewEdge"},
{FREESTYLE_ALGO_VERYFAST, "VERYFAST", 0, "Very Fast Ray Casting",
"Sample one FEdge in each ViewEdge; do not save list of occluders"},
{FREESTYLE_ALGO_CULLED_ADAPTIVE_TRADITIONAL, "CULLEDADAPTIVETRADITIONAL", 0,
"Culled Traditional Visibility Detection",
"Culled adaptive grid with heuristic density and "
"traditional QI calculation"},
{FREESTYLE_ALGO_ADAPTIVE_TRADITIONAL, "ADAPTIVETRADITIONAL", 0, "Unculled Traditional Visibility Detection",
"Adaptive grid with heuristic density and traditional QI calculation"},
{FREESTYLE_ALGO_CULLED_ADAPTIVE_CUMULATIVE, "CULLEDADAPTIVECUMULATIVE", 0,
"Culled Cumulative Visibility Detection",
"Culled adaptive grid with heuristic density and "
"cumulative QI calculation"},
{FREESTYLE_ALGO_ADAPTIVE_CUMULATIVE, "ADAPTIVECUMULATIVE", 0, "Unculled Cumulative Visibility Detection",
"Adaptive grid with heuristic density and cumulative QI calculation"},
{0, NULL, 0, NULL, NULL}
};
/* FreestyleLineSet */
srna = RNA_def_struct(brna, "FreestyleLineSet", NULL);
@@ -2922,12 +2901,6 @@ static void rna_def_freestyle_settings(BlenderRNA *brna)
RNA_def_property_ui_text(prop, "Control Mode", "Select the Freestyle control mode");
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
prop = RNA_def_property(srna, "raycasting_algorithm", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_sdna(prop, NULL, "raycasting_algorithm");
RNA_def_property_enum_items(prop, freestyle_raycasting_algorithm_items);
RNA_def_property_ui_text(prop, "Raycasting Algorithm", "Select the Freestyle raycasting algorithm");
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, NULL);
prop = RNA_def_property(srna, "use_culling", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", FREESTYLE_CULLING);
RNA_def_property_ui_text(prop, "Culling", "If enabled, out-of-view edges are ignored");