14 #define DNA_DEPRECATED_ALLOW
76 #define U (*((const UserDef *)&U))
105 sizeof(palette->
info));
117 if (palette ==
NULL) {
138 sizeof(palcolor->
info));
152 if (stab->rot_track) {
158 stab->rot_track =
NULL;
165 for (con = lb->
first; con; con = con->
next) {
168 const float deg_to_rad_f =
DEG2RADF(1.0f);
187 for (con = lb->
first; con; con = con->
next) {
216 for (con = lb->
first; con; con = con->
next) {
219 data->bulge_min = 1.0f;
220 data->bulge_max = 1.0f;
229 for (region = regionbase->
first; region; region = region->
next) {
252 bone->scale_in_x = bone->scale_in_z = 1.0f;
253 bone->scale_out_x = bone->scale_out_z = 1.0f;
262 const char *old_prop_name,
263 const char *new_prop_name)
265 const char *old_path =
BLI_sprintfN(
"%s.%s", prefix, old_prop_name);
292 char node_name_esc[
sizeof(
node->name) * 2];
294 const char *prefix =
BLI_sprintfN(
"nodes[\"%s\"]", node_name_esc);
312 const char *sockname;
314 sock = sock->next, pass_index++) {
315 if (sock->storage ==
NULL) {
317 sock->storage = sockdata;
322 if (pass_index == 0) {
325 else if (pass_index == 1) {
331 BLI_strncpy(sock->name, sockname,
sizeof(sock->name));
355 char *new_path =
NULL;
360 if (strstr(old_path,
"bbone_in")) {
363 else if (strstr(old_path,
"bbone_out")) {
388 if (dtar->rna_path) {
405 if ((fcm->sfra == fcm->efra) && (fcm->sfra == 0)) {
406 fcm->sfra =
data->start_frame;
407 fcm->efra =
data->end_frame;
418 #define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19)
419 #define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21)
428 #undef SEQ_USE_PROXY_CUSTOM_DIR
429 #undef SEQ_USE_PROXY_CUSTOM_FILE
442 effect_handle.
init(seq);
446 if (
data->color[3] == 0.0f) {
448 data->shadow_color[3] = 1.0f;
493 for (space_link =
area->spacedata.first; space_link; space_link = space_link->
next) {
561 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
565 for (region = lb->
first; region; region = region->
next) {
694 image->gen_color[3] = 1.0f;
717 #define BRUSH_RAKE (1 << 7)
718 #define BRUSH_RANDOM_ROTATION (1 << 25)
737 #undef BRUSH_RANDOM_ROTATION
834 data->motion_blur_samples = 16;
835 data->motion_blur_shutter = 0.5f;
846 ca->gpu_dof.fstop = 128.0f;
847 ca->gpu_dof.focal_length = 1.0f;
848 ca->gpu_dof.focus_distance = 1.0f;
849 ca->gpu_dof.sensor = 1.0f;
861 "Warning: Object '%s' had several modifiers with the "
862 "same name, renamed one of them to '%s'.\n",
879 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
938 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
966 if (ima->packedfile) {
972 ima->packedfile =
NULL;
993 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1031 #define BRUSH_TORUS (1 << 1)
1054 #define RV3D_VIEW_PERSPORTHO 7
1059 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1063 for (region = lb->
first; region; region = region->
next) {
1078 #undef RV3D_VIEW_PERSPORTHO
1082 #define LA_YF_PHOTON 5
1256 pchan->scale_in_x = pchan->scale_in_z = 1.0f;
1257 pchan->scale_out_x = pchan->scale_out_z = 1.0f;
1266 pchan->flag &= ~((1 << 3) | (1 << 4) | (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8));
1273 if (
camera->stereo.pole_merge_angle_from == 0.0f &&
1274 camera->stereo.pole_merge_angle_to == 0.0f) {
1346 if (palcolor !=
NULL) {
1365 gpl->opacity = 1.0f;
1374 BLI_strncpy(gps->colorname, gpl->info,
sizeof(gps->colorname));
1375 gps->thickness = gpl->thickness;
1378 for (
int i = 0; i < gps->totpoints; i++) {
1379 gps->points[i].strength = 1.0f;
1398 tracking_object = tracking_object->
next) {
1401 for (track = tracksbase->
first; track !=
NULL; track = track->
next) {
1409 fd->
filesdna,
"MovieTrackingStabilization",
"int",
"tot_rot_track")) {
1507 br->fill_threshold /= sqrt_3;
1518 mpath->
color[0] = 1.0f;
1519 mpath->
color[1] = 0.0f;
1520 mpath->
color[2] = 0.0f;
1527 mpath = pchan->
mpath;
1529 mpath->
color[0] = 1.0f;
1530 mpath->
color[1] = 0.0f;
1531 mpath->
color[2] = 0.0f;
1547 for (
MaskSplinePoint *mspoint = mspline->points; i < mspline->tot_point;
1549 if (mspoint->parent.id_type == 0) {
1565 switch (ndg->
type) {
1570 ndg->
star_45 = ndg->angle != 0;
1652 for (
int i = 0; i < 2; i++) {
1680 if (preset <= FFM_PRESET_FAST) {
1683 else if (preset >= FFM_PRESET_SLOW) {
1693 fd->
filesdna,
"ParticleInstanceModifierData",
"float",
"particle_amount")) {
typedef float(TangentPoint)[2]
struct AnimData * BKE_animdata_from_id(const 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_COMPOSITE
struct bNodeTree * ntreeFromID(struct ID *id)
#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
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL()
bool BLI_uniquename(struct ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_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.
#define R_IMF_EXR_CODEC_DWAA
@ VP_FLAG_VGROUP_RESTRICT
#define R_BAKE_SPACE_TANGENT
#define R_IMF_PLANES_RGBA
@ CURVE_PAINT_FLAG_CORNERS_DETECT
#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.
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between and object coordinate space Combine Create a color from its hue
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between camera
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between and object coordinate space Combine Create a color from its saturation
struct ListBase packedfiles
struct Stereo3dFormat * stereo3d_format
FreestyleLineStyle linestyle
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3
struct SeqEffectHandle SEQ_effect_handle_get(Sequence *seq)
void SEQ_for_each_callback(ListBase *seqbase, SeqForEachFunc callback, void *user_data)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)
ccl_device_inline float4 mask(const int4 &mask, const float4 &a)
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_sockets(bNodeTree *ntree, bNode *node, bool do_id_user)
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
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
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)
static bool seq_update_effectdata_cb(Sequence *seq, void *UNUSED(user_data))
#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 bool seq_update_proxy_cb(Sequence *seq, void *UNUSED(user_data))
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)