Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_camera_types.h
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | typedef struct Camera { | ||||
| char type; /* CAM_PERSP, CAM_ORTHO or CAM_PANO */ | char type; /* CAM_PERSP, CAM_ORTHO or CAM_PANO */ | ||||
| char dtx; /* draw type extra */ | char dtx; /* draw type extra */ | ||||
| short flag; | short flag; | ||||
| float passepartalpha; | float passepartalpha; | ||||
| float clipsta, clipend; | float clipsta, clipend; | ||||
| float lens, ortho_scale, drawsize; | float lens, ortho_scale, drawsize; | ||||
| float sensor_x, sensor_y; | float sensor_x, sensor_y; | ||||
| float shiftx, shifty; | float shiftx, shifty; | ||||
campbellbarton: Best make this into a new `struct`, then Camera and SequenceSpace can share it, RNA can also be… | |||||
Not Done Inline ActionsDo you mean like adding a struct to camera and then including the cam DNA into SequenceSpace or making a new DNA file that is included by both? januz: Do you mean like adding a struct to camera and then including the cam DNA into SequenceSpace or… | |||||
Not Done Inline ActionsA new DNA file isn't necessary, just a new struct in DNA_camera_types.h, then include that in DNA_space_types.h campbellbarton: A new DNA file isn't necessary, just a new struct in `DNA_camera_types.h`, then include that in… | |||||
| /* yafray: dof params */ | /* yafray: dof params */ | ||||
| /* qdn: yafray var 'YF_dofdist' now enabled for defocus composite node as well. | /* qdn: yafray var 'YF_dofdist' now enabled for defocus composite node as well. | ||||
| * The name was not changed so that no other files need to be modified */ | * The name was not changed so that no other files need to be modified */ | ||||
| float YF_dofdist; | float YF_dofdist; | ||||
| struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */ | struct Ipo *ipo DNA_DEPRECATED; /* old animation system, deprecated for 2.5 */ | ||||
| struct Object *dof_ob; | struct Object *dof_ob; | ||||
| Show All 29 Lines | enum { | ||||
| CAM_SHOWMIST = (1 << 1), | CAM_SHOWMIST = (1 << 1), | ||||
| CAM_SHOWPASSEPARTOUT = (1 << 2), | CAM_SHOWPASSEPARTOUT = (1 << 2), | ||||
| CAM_SHOWTITLESAFE = (1 << 3), | CAM_SHOWTITLESAFE = (1 << 3), | ||||
| CAM_SHOWNAME = (1 << 4), | CAM_SHOWNAME = (1 << 4), | ||||
| CAM_ANGLETOGGLE = (1 << 5), | CAM_ANGLETOGGLE = (1 << 5), | ||||
| CAM_DS_EXPAND = (1 << 6), | CAM_DS_EXPAND = (1 << 6), | ||||
| CAM_PANORAMA = (1 << 7), /* deprecated */ | CAM_PANORAMA = (1 << 7), /* deprecated */ | ||||
| CAM_SHOWSENSOR = (1 << 8), | CAM_SHOWSENSOR = (1 << 8), | ||||
| CAM_SHOWCENTERSAFE = (1 << 9), | |||||
| }; | }; | ||||
| #if (DNA_DEPRECATED_GCC_POISON == 1) | #if (DNA_DEPRECATED_GCC_POISON == 1) | ||||
| #pragma GCC poison CAM_PANORAMA | #pragma GCC poison CAM_PANORAMA | ||||
| #endif | #endif | ||||
| /* yafray: dof sampling switch */ | /* yafray: dof sampling switch */ | ||||
| /* #define CAM_YF_NO_QMC 512 */ /* deprecated */ | /* #define CAM_YF_NO_QMC 512 */ /* deprecated */ | ||||
| Show All 16 Lines | |||||
Best make this into a new struct, then Camera and SequenceSpace can share it, RNA can also be de-duplicated.