28 #define DNA_DEPRECATED_ALLOW
90 #define U (*((const UserDef *)&U))
119 sizeof(palette->
info));
131 if (palette ==
NULL) {
152 sizeof(palcolor->
info));
166 if (stab->rot_track) {
172 stab->rot_track =
NULL;
179 for (con = lb->
first; con; con = con->
next) {
182 const float deg_to_rad_f =
DEG2RADF(1.0f);
201 for (con = lb->
first; con; con = con->
next) {
230 for (con = lb->
first; con; con = con->
next) {
233 data->bulge_min = 1.0f;
234 data->bulge_max = 1.0f;
243 for (region = regionbase->
first; region; region = region->
next) {
266 bone->scale_in_x = bone->scale_in_y = 1.0f;
267 bone->scale_out_x = bone->scale_out_y = 1.0f;
276 const char *old_prop_name,
277 const char *new_prop_name)
279 const char *old_path =
BLI_sprintfN(
"%s.%s", prefix, old_prop_name);
306 char node_name_esc[
sizeof(
node->name) * 2];
308 const char *prefix =
BLI_sprintfN(
"nodes[\"%s\"]", node_name_esc);
326 const char *sockname;
328 sock = sock->next, pass_index++) {
329 if (sock->storage ==
NULL) {
331 sock->storage = sockdata;
336 if (pass_index == 0) {
339 else if (pass_index == 1) {
345 BLI_strncpy(sock->name, sockname,
sizeof(sock->name));
369 char *new_path =
NULL;
374 if (strstr(old_path,
"bbone_in")) {
377 else if (strstr(old_path,
"bbone_out")) {
402 if (dtar->rna_path) {
419 if ((fcm->sfra == fcm->efra) && (fcm->sfra == 0)) {
420 fcm->sfra =
data->start_frame;
421 fcm->efra =
data->end_frame;
468 for (space_link =
area->spacedata.first; space_link; space_link = space_link->
next) {
536 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
540 for (region = lb->
first; region; region = region->
next) {
708 #define BRUSH_RAKE (1 << 7)
709 #define BRUSH_RANDOM_ROTATION (1 << 25)
728 #undef BRUSH_RANDOM_ROTATION
825 data->motion_blur_samples = 16;
826 data->motion_blur_shutter = 0.5f;
837 ca->gpu_dof.fstop = 128.0f;
838 ca->gpu_dof.focal_length = 1.0f;
839 ca->gpu_dof.focus_distance = 1.0f;
840 ca->gpu_dof.sensor = 1.0f;
852 "Warning: Object '%s' had several modifiers with the "
853 "same name, renamed one of them to '%s'.\n",
870 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
924 #define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19)
925 #define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21)
934 #undef SEQ_USE_PROXY_CUSTOM_DIR
935 #undef SEQ_USE_PROXY_CUSTOM_FILE
945 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
973 if (ima->packedfile) {
979 ima->packedfile =
NULL;
1000 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1038 #define BRUSH_TORUS (1 << 1)
1061 #define RV3D_VIEW_PERSPORTHO 7
1066 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1070 for (region = lb->
first; region; region = region->
next) {
1085 #undef RV3D_VIEW_PERSPORTHO
1089 #define LA_YF_PHOTON 5
1229 effect_handle.
init(seq);
1233 if (
data->color[3] == 0.0f) {
1235 data->shadow_color[3] = 1.0f;
1271 pchan->scale_in_x = pchan->scale_in_y = 1.0f;
1272 pchan->scale_out_x = pchan->scale_out_y = 1.0f;
1281 pchan->flag &= ~((1 << 3) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8));
1288 if (camera->stereo.pole_merge_angle_from == 0.0f &&
1289 camera->stereo.pole_merge_angle_to == 0.0f) {
1290 camera->stereo.pole_merge_angle_from =
DEG2RADF(60.0f);
1291 camera->stereo.pole_merge_angle_to =
DEG2RADF(75.0f);
1361 if (palcolor !=
NULL) {
1380 gpl->opacity = 1.0f;
1389 BLI_strncpy(gps->colorname, gpl->info,
sizeof(gps->colorname));
1390 gps->thickness = gpl->thickness;
1393 for (
int i = 0; i < gps->totpoints; i++) {
1394 gps->points[i].strength = 1.0f;
1413 tracking_object = tracking_object->
next) {
1416 for (track = tracksbase->
first; track !=
NULL; track = track->
next) {
1424 fd->
filesdna,
"MovieTrackingStabilization",
"int",
"tot_rot_track")) {
1522 br->fill_threshold /= sqrt_3;
1533 mpath->
color[0] = 1.0f;
1534 mpath->
color[1] = 0.0f;
1535 mpath->
color[2] = 0.0f;
1542 mpath = pchan->
mpath;
1544 mpath->
color[0] = 1.0f;
1545 mpath->
color[1] = 0.0f;
1546 mpath->
color[2] = 0.0f;
1562 for (
MaskSplinePoint *mspoint = mspline->points; i < mspline->tot_point;
1564 if (mspoint->parent.id_type == 0) {
1580 switch (ndg->
type) {
1585 ndg->
star_45 = ndg->angle != 0;
1667 for (
int i = 0; i < 2; i++) {
1695 if (preset <= FFM_PRESET_FAST) {
1698 else if (preset >= FFM_PRESET_SLOW) {
1708 fd->
filesdna,
"ParticleInstanceModifierData",
"float",
"particle_amount")) {
typedef float(TangentPoint)[2]
struct AnimData * BKE_animdata_from_id(struct ID *id)
void BKE_fcurves_main_cb(struct Main *bmain, ID_FCurve_Edit_Callback func, void *user_data)
bool CustomData_set_layer_name(const struct CustomData *data, int type, int n, const char *name)
#define DRIVER_TARGETS_LOOPER_BEGIN(dvar)
#define DRIVER_TARGETS_LOOPER_END
int set_listbasepointers(struct Main *main, struct ListBase *lb[])
#define MAIN_VERSION_ATLEAST(main, ver, subver)
void BKE_mask_parent_init(struct MaskParent *parent)
bool BKE_modifier_unique_name(struct ListBase *modifiers, struct ModifierData *md)
#define CMP_NODE_PLANETRACKDEFORM
#define CMP_NODE_OUTPUT_FILE
#define FOREACH_NODETREE_END
struct bNodeSocket * nodeFindSocket(const struct bNode *node, eNodeSocketInOut in_out, const char *identifier)
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
#define CMP_NODE_R_LAYERS
void ntreeSetTypes(const struct bContext *C, struct bNodeTree *ntree)
struct SceneRenderView * BKE_scene_add_render_view(struct Scene *sce, const char *name)
void BKE_area_region_free(struct SpaceType *st, struct ARegion *region)
struct ListBase * BKE_tracking_object_get_tracks(struct MovieTracking *tracking, struct MovieTrackingObject *object)
BLI_INLINE bool BLI_listbase_is_empty(const struct ListBase *lb)
#define LISTBASE_FOREACH(type, var, list)
void BLI_freelinkN(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BLI_INLINE void BLI_listbase_clear(struct ListBase *lb)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(struct ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
MINLINE float min_ff(float a, float b)
void unit_m4(float m[4][4])
MINLINE void copy_v4_v4(float r[4], const float a[4])
MINLINE void copy_v2_fl2(float v[2], float x, float y)
MINLINE void mul_v3_fl(float r[3], float f)
MINLINE void copy_v3_v3(float r[3], const float a[3])
MINLINE void copy_v4_fl(float r[4], float f)
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
char * BLI_str_replaceN(const char *__restrict str, const char *__restrict substr_old, const char *__restrict substr_new) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, const size_t dst_maxncpy) ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
bool BLI_uniquename(struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t len)
#define ARRAY_SET_ITEMS(...)
external readfile function prototypes.
@ BRUSH_GRAB_ACTIVE_VERTEX
@ BRUSH_FRONTFACE_FALLOFF
@ BRUSH_INVERT_TO_SCRAPE_FILL
@ CONSTRAINT_TYPE_TRANSFORM
@ CONSTRAINT_TYPE_STRETCHTO
blenloader genfile private function prototypes
bool DNA_struct_elem_find(const struct SDNA *sdna, const char *stype, const char *vartype, const char *name)
@ GP_DATA_SHOW_ONIONSKINS
#define LS_INTEGRATION_MEAN
#define LS_SORT_KEY_DISTANCE_FROM_CAMERA
@ eModifierType_ParticleSystem
@ eModifierType_SimpleDeform
@ eModifierType_NormalEdit
@ eModifierType_SurfaceDeform
@ eModifierType_ParticleInstance
@ eHook_Falloff_InvSquare
@ eParticleInstanceSpace_World
Object is a sort of wrapper for general info.
@ PART_CHILD_USE_CLUMP_CURVE
@ PART_CHILD_USE_ROUGH_CURVE
Types and defines for representing Rigid Body entities.
@ CURVE_PAINT_FLAG_CORNERS_DETECT
@ VP_FLAG_VGROUP_RESTRICT
#define R_IMF_EXR_CODEC_DWAA
#define R_BAKE_SPACE_TANGENT
#define R_IMF_PLANES_RGBA
#define STEREO_LEFT_SUFFIX
#define STEREO_RIGHT_NAME
#define STEREO_RIGHT_SUFFIX
#define R_IMF_EXR_CODEC_DWAB
#define R_BAKE_PASS_FILTER_ALL
@ SEQ_STORAGE_PROXY_CUSTOM_FILE
@ SEQ_STORAGE_PROXY_CUSTOM_DIR
#define MTEX_ANGLE_RANDOM
@ TRACKING_SHOW_STAB_TRACKS
#define V3D_S3D_DISPPLANE
Read Guarded memory(de)allocation.
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set CMP_NODE_COMPOSITE
#define SEQ_ALL_BEGIN(ed, _seq)
struct ListBase packedfiles
struct Stereo3dFormat * stereo3d_format
FreestyleLineStyle linestyle
struct SeqEffectHandle SEQ_effect_handle_get(Sequence *seq)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)
static void area(int d1, int d2, int e1, int e2, float weights[2])
const char * node_cmp_rlayers_sock_to_pass(int sock_index)
void node_verify_socket_templates(bNodeTree *ntree, bNode *node)
struct ImageFormatData im_format
float convergence_distance
float interocular_distance
struct CameraStereoSettings stereo
struct ClothSimSettings * sim_parms
unsigned short thumbnail_size
struct FluidDomainSettings * domain
struct PackedFile * packedfile
struct ModifierData * next
struct ModifierData * prev
struct MovieTracking tracking
struct MovieTrackingObject * next
struct MovieTrackingTrack * next
MovieTrackingStabilization stabilization
MovieTrackingSettings settings
struct RigidBodyCon * rigidbody_constraint
ParticleBrushData brush[7]
struct CurveMapping * clumpcurve
struct CurveMapping * roughcurve
struct ParticleSystem * psys
struct ParticleSystem * next
struct PointCache * pointcache
struct ClothModifierData * clmd
int preview_start_resolution
struct CurveMapping mblur_shutter_curve
float simplify_particles_render
struct ImageFormatData im_format
short simplify_subsurf_render
struct FFMpegCodecData ffcodecdata
float spring_stiffness_ang_z
float spring_damping_ang_z
float spring_damping_ang_y
float spring_damping_ang_x
float spring_stiffness_ang_y
float spring_stiffness_ang_x
struct ToolSettings * toolsettings
struct DisplaySafeAreas safe_areas
void(* init)(struct Sequence *seq)
struct Stereo3dFormat * stereo3d_format
FileSelectParams * params
float stereo3d_volume_alpha
float stereo3d_convergence_alpha
struct bConstraint * next
struct bPoseChannel * next
struct Stereo3dFormat * stereo3d_format
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
static bGPDpalette * BKE_gpencil_palette_addnew(bGPdata *gpd, const char *name)
static void do_version_hue_sat_node(bNodeTree *ntree, bNode *node)
static void do_version_bones_super_bbone(ListBase *lb)
#define SEQ_USE_PROXY_CUSTOM_DIR
static bGPDpalettecolor * BKE_gpencil_palettecolor_addnew(bGPDpalette *palette, const char *name)
static void do_version_action_editor_properties_region(ListBase *regionbase)
static void do_version_bbone_easing_fcurve_fix(ID *UNUSED(id), FCurve *fcu, void *UNUSED(user_data))
#define SEQ_USE_PROXY_CUSTOM_FILE
#define RV3D_VIEW_PERSPORTHO
void do_versions_after_linking_270(Main *bmain)
static void do_versions_compositor_render_passes_storage(bNode *node)
#define BRUSH_RANDOM_ROTATION
static void do_version_constraints_radians_degrees_270_1(ListBase *lb)
static void do_version_constraints_stretch_to_limits(ListBase *lb)
static char * replace_bbone_easing_rnapath(char *old_path)
static void do_version_constraints_radians_degrees_270_5(ListBase *lb)
static void anim_change_prop_name(FCurve *fcu, const char *prefix, const char *old_prop_name, const char *new_prop_name)
static void migrate_single_rot_stabilization_track_settings(MovieTrackingStabilization *stab)
static void do_versions_compositor_render_passes(bNodeTree *ntree)
void blo_do_versions_270(FileData *fd, Library *UNUSED(lib), Main *bmain)