25 # include "winsock2.h"
31 #define DNA_DEPRECATED_ALLOW
91 #define U (*((const UserDef *)&U))
100 if (
area->headertype == 1) {
130 region->
v2d.
min[0] = 0.0f;
131 region->
v2d.
min[1] = 0.0f;
132 region->
v2d.
max[0] = 12000.0f;
133 region->
v2d.
max[1] = 12000.0f;
212 for (; region_main; region_main = region_main->
next) {
277 memcpy(®ion->
v2d, &space_outliner->v2d,
sizeof(
View2D));
290 memcpy(®ion->
v2d, &sipo->v2d,
sizeof(
View2D));
296 region->
v2d.
min[0] = FLT_MIN;
297 region->
v2d.
min[1] = FLT_MIN;
300 region->
v2d.
max[1] = FLT_MAX;
307 memcpy(®ion->
v2d, &snla->v2d,
sizeof(
View2D));
330 region->
v2d.
min[0] = 0.0f;
331 region->
v2d.
min[1] = 0.0f;
334 region->
v2d.
max[1] = FLT_MAX;
355 memcpy(®ion->
v2d, &sseq->v2d,
sizeof(
View2D));
365 memcpy(®ion->
v2d, &snode->v2d,
sizeof(
View2D));
373 memcpy(®ion->
v2d, &sbuts->v2d,
sizeof(
View2D));
409 if (
area->headertype) {
416 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
423 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
430 if (
area->spacedata.first) {
431 sl =
area->spacedata.first;
432 for (sl = sl->
next; sl; sl = sl->
next) {
433 if (
area->headertype) {
457 printf(
"Converted GPencil to ID: %s\n",
id->
name + 2);
468 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
511 for (ob =
main->objects.first; ob; ob = ob->
id.
next) {
533 for (con = lb->
first; con; con = con->
next) {
617 switch (sock->
type) {
620 "default socket value");
621 valfloat->
value = sock->ns.vec[0];
622 valfloat->
min = sock->ns.min;
623 valfloat->
max = sock->ns.max;
628 "default socket value");
630 valvector->
min = sock->ns.min;
631 valvector->
max = sock->ns.max;
636 "default socket value");
680 #define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19)
681 #define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21)
686 #undef SEQ_USE_PROXY_CUSTOM_DIR
687 #undef SEQ_USE_PROXY_CUSTOM_FILE
709 enum { R_PANORAMA = (1 << 10) };
715 if (sce->
r.
mode & R_PANORAMA) {
716 for (base = sce->base.first; base; base = base->
next) {
721 cam->
flag |= CAM_PANORAMA;
725 sce->
r.
mode &= ~R_PANORAMA;
810 ob->
matbits[
a] = (ob->colbits & (1 <<
a)) != 0;
845 if (ob->
flag & 8192) {
868 fluidmd->
fss->
fmd = fluidmd;
982 for (
a = 0;
a < tot;
a++,
data += 3) {
993 for (
a = 0;
a < tot;
a++,
data += 3) {
1007 for (
a = 0;
a < nu->
pntsu;
a++, bezt++) {
1078 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1120 for (i = 0; i < band->
tot; i++) {
1188 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1193 if (sl ==
area->spacedata.first) {
1194 regionbase = &
area->regionbase;
1200 for (region = regionbase->
first; region; region = region->
next) {
1226 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1233 if (sl ==
area->spacedata.first) {
1234 regionbase = &
area->regionbase;
1240 if (sseq->
view == 0) {
1243 if (sseq->
mainb == 0) {
1248 for (; region_main; region_main = region_main->
next) {
1289 if (arm->
pathflag & ARM_PATH_FNUMS) {
1292 if (arm->
pathflag & ARM_PATH_KFRAS) {
1295 if (arm->
pathflag & ARM_PATH_KFNOS) {
1300 if (arm->
pathflag & ARM_PATH_HEADS) {
1305 if (arm->
pathflag & ARM_PATH_ACFRA) {
1359 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1363 if (sl ==
area->spacedata.first) {
1364 regionbase = &
area->regionbase;
1371 for (region = (
ARegion *)regionbase->
first; region; region = region->
next) {
1425 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1430 if (sl ==
area->spacedata.first) {
1431 regionbase = &
area->regionbase;
1438 for (; region_preview; region_preview = region_preview->
next) {
1464 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1550 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1572 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1578 if (sl ==
area->spacedata.first) {
1579 regionbase = &
area->regionbase;
1585 if (snode->v2d.minzoom > 0.09f) {
1586 snode->v2d.minzoom = 0.09f;
1588 if (snode->v2d.maxzoom < 2.31f) {
1589 snode->v2d.maxzoom = 2.31f;
1592 for (region = regionbase->
first; region; region = region->
next) {
1614 enum { PARCURVE = 1 };
1648 for (i = 0; i < 20; i++) {
1649 if (
scene->lay & (1 << i)) {
1650 scene->layact = 1 << i;
1674 if (seq->
sat == 0.0f) {
1692 if (brush->
alpha == 0) {
1693 brush->
alpha = 1.0f;
1702 if (brush->
size == 0) {
1732 if (brush->
rate == 0) {
1764 if (sce->
toolsettings->sculpt_paint_unified_alpha == 0) {
1768 if (sce->
toolsettings->sculpt_paint_unified_unprojected_radius == 0) {
1769 sce->
toolsettings->sculpt_paint_unified_unprojected_radius = 0.125f;
1772 if (sce->
toolsettings->sculpt_paint_unified_size == 0) {
1848 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1855 for (region =
area->regionbase.first; region; region = region->
next) {
1899 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1964 for (sock =
node->inputs.first; sock; sock = sock->
next) {
1969 for (sock =
node->outputs.first; sock; sock = sock->
next) {
1978 for (sock =
node->inputs.first; sock; sock = sock->
next) {
2002 for (sock =
node->outputs.first; sock; sock = sock->
next) {
2050 if (brush->
height == 0) {
2061 if (smd->
flag & MOD_SOLIDIFY_RIM_MATERIAL) {
2063 smd->
flag &= ~MOD_SOLIDIFY_RIM_MATERIAL;
2117 for (region =
area->regionbase.first; region; region = region->
next) {
2126 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
2175 for (region =
area->regionbase.first; region; region = region->
next) {
2177 if (region->
v2d.
min[1] == 4.0f) {
2178 region->
v2d.
min[1] = 0.5f;
2183 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
2188 if (region->
v2d.
min[1] == 4.0f) {
2189 region->
v2d.
min[1] = 0.5f;
2224 for (bezt = fcu->
bezt; i < fcu->totvert; i++, bezt++) {
2247 for (sock =
node->inputs.first; sock; sock = sock->
next) {
2250 for (sock =
node->outputs.first; sock; sock = sock->
next) {
2301 for (sock = gnode->
outputs.
first; sock; sock = sock->next) {
2302 int old_index = sock->to_index;
2304 for (link = ngroup->
links.
first; link; link = link->next) {
2305 if (link->tonode ==
NULL && link->fromsock->own_index == old_index) {
2306 strcpy(sock->identifier, link->fromsock->identifier);
2308 sock->own_index = link->fromsock->own_index;
2310 sock->groupsock =
NULL;
2314 for (sock = gnode->
inputs.
first; sock; sock = sock->next) {
2315 int old_index = sock->to_index;
2317 for (link = ngroup->
links.
first; link; link = link->next) {
2318 if (link->fromnode ==
NULL && link->tosock->own_index == old_index) {
2319 strcpy(sock->identifier, link->tosock->identifier);
2321 sock->own_index = link->tosock->own_index;
2323 sock->groupsock =
NULL;
2365 if ((nla_strip->act) && (nla_strip->act->idroot == 0)) {
2366 nla_strip->act->idroot =
GS(
id->
name);
typedef float(TangentPoint)[2]
struct AnimData * BKE_animdata_from_id(struct ID *id)
void animviz_settings_init(struct bAnimVizSettings *avs)
void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll)
bool CustomData_free_layer_active(struct CustomData *data, int type, int totelem)
void BKE_lib_libblock_session_uuid_ensure(struct ID *id)
bool BKE_id_new_name_validate(struct ListBase *lb, struct ID *id, const char *name) ATTR_NONNULL(1
#define FOREACH_MAIN_ID_END
#define MAIN_VERSION_ATLEAST(main, ver, subver)
const char * BKE_main_blendfile_path(const struct Main *bmain) ATTR_NONNULL()
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
void BKE_modifier_mdef_compact_influences(struct ModifierData *md)
struct ModifierData * BKE_modifiers_findby_type(const struct Object *ob, ModifierType type)
struct ModifierData * BKE_modifier_new(int type)
void nodeUniqueName(struct bNodeTree *ntree, struct bNode *node)
#define CMP_NODE_COLORBALANCE
int nodeSocketIsHidden(const struct bNodeSocket *sock)
#define FOREACH_NODETREE_END
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
int nodeCountSocketLinks(const struct bNodeTree *ntree, const struct bNodeSocket *sock)
void BKE_screen_view3d_do_versions_250(struct View3D *v3d, ListBase *regions)
void BKE_area_region_free(struct SpaceType *st, struct ARegion *region)
struct SpaceType * BKE_spacetype_from_id(int spaceid)
struct bSound * BKE_sound_new_file(struct Main *main, const char *filepath)
void BKE_texture_mtex_default(struct MTex *mtex)
#define LISTBASE_FOREACH(type, var, list)
void BLI_freelinkN(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(struct ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
MINLINE void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3])
void copy_m3_m4(float m1[3][3], const float m2[4][4])
void unit_axis_angle(float axis[3], float *angle)
MINLINE void copy_v4_v4(float r[4], const float a[4])
MINLINE bool is_zero_v4(const float a[4]) ATTR_WARN_UNUSED_RESULT
MINLINE void copy_v3_v3(float r[3], const float a[3])
MINLINE bool is_zero_v3(const float a[3]) ATTR_WARN_UNUSED_RESULT
void BLI_join_dirfile(char *__restrict dst, const size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
bool BLI_path_abs(char *path, const char *basepath) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, const size_t maxncpy) ATTR_NONNULL()
Compatibility-like things for windows.
external readfile function prototypes.
@ CONSTRAINT_TYPE_ROTLIMIT
@ CONSTRAINT_TYPE_KINEMATIC
@ FLUID_FLOW_INITVELOCITY
@ eModifierType_MeshDeform
#define OB_MODE_ALL_PAINT
#define OB_FLUIDSIM_ACTIVE
#define OB_FLUIDSIM_OVERRIDE_TIME
#define PFIELD_SHAPE_SURFACE
#define PFIELD_SHAPE_PLANE
#define PFIELD_DO_LOCATION
Object is a sort of wrapper for general info.
#define PART_DRAW_COL_MAT
#define PHYS_GLOBAL_GRAVITY
#define SCE_SELECT_VERTEX
@ V2D_VIEWSYNC_AREA_VERTICAL
@ V2D_SCROLL_VERTICAL_HANDLES
@ V2D_SCROLL_HORIZONTAL_HANDLES
#define V3D_HIDE_OVERLAYS
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
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 CMP_NODE_BLUR
#define SEQ_ALL_BEGIN(ed, _seq)
void *(* MEM_calloc_arrayN)(size_t len, size_t size, const char *str)
void *(* MEM_callocN)(size_t len, const char *str)
int main(int argc, char **argv)
static void area(int d1, int d2, int e1, int e2, float weights[2])
void * blo_do_versions_newlibadr(FileData *fd, const void *lib, const void *adr)
void blo_do_version_old_trackto_to_constraints(struct Object *ob)
static void do_gravity(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode, float bstrength)
int texture_overlay_alpha
float smooth_stroke_factor
struct CurveMapping * curve
float crease_pinch_factor
struct ClothSimSettings * sim_parms
struct EffectorWeights * effector_weights
struct FluidDomainSettings * domain
struct FluidFlowSettings * flow
struct FluidsimSettings * fss
struct FluidsimModifierData * fmd
struct bNodeTree * nodetree
struct CustomData vdata edata fdata
struct ModifierData * next
struct OceanCache * oceancache
ParticleBrushData brush[7]
struct BoidSettings * boids
struct EffectorWeights * effector_weights
struct FFMpegCodecData ffcodecdata
struct bNodeTree * nodetree
struct PhysicsSettings physics_settings
struct ToolSettings * toolsettings
struct EffectorWeights * effector_weights
struct Histogram sample_line_hist
struct bNodeTree * nodetree
struct bConstraint * next
struct bNodeSocket * new_sock
struct bNodeSocket * next
struct bNodeSocket * prev
struct bPoseChannel * next
struct PackedFile * packedfile
struct PackedFile * newpackedfile
static bNodeSocket * do_versions_node_group_add_socket_2_56_2(bNodeTree *ngroup, const char *name, int type, int in_out)
static void do_versions_windowmanager_2_50(bScreen *screen)
void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain)
void do_versions_after_linking_250(Main *bmain)
#define SEQ_USE_PROXY_CUSTOM_DIR
static void lib_node_do_versions_group_indices(bNode *gnode)
static void versions_gpencil_add_main(ListBase *lb, ID *id, const char *name)
#define SEQ_USE_PROXY_CUSTOM_FILE
static void do_versions_gpencil_2_50(Main *main, bScreen *screen)
static void do_version_constraints_radians_degrees_250(ListBase *lb)
static void area_add_window_regions(ScrArea *area, SpaceLink *sl, ListBase *lb)
static void do_version_bone_roll_256(Bone *bone)
static void do_version_mdef_250(Main *main)
static void sequencer_init_preview_region(ARegion *region)
static void do_versions_socket_default_value_259(bNodeSocket *sock)
static void area_add_header_region(ScrArea *area, ListBase *lb)