11 # include "winsock2.h"
16 #define DNA_DEPRECATED_ALLOW
77 #define U (*((const UserDef *)&U))
86 if (
area->headertype == 1) {
116 region->
v2d.
min[0] = 0.0f;
117 region->
v2d.
min[1] = 0.0f;
118 region->
v2d.
max[0] = 12000.0f;
119 region->
v2d.
max[1] = 12000.0f;
198 for (; region_main; region_main = region_main->
next) {
263 memcpy(®ion->
v2d, &space_outliner->v2d,
sizeof(
View2D));
276 memcpy(®ion->
v2d, &sipo->v2d,
sizeof(
View2D));
282 region->
v2d.
min[0] = FLT_MIN;
283 region->
v2d.
min[1] = FLT_MIN;
286 region->
v2d.
max[1] = FLT_MAX;
293 memcpy(®ion->
v2d, &snla->v2d,
sizeof(
View2D));
316 region->
v2d.
min[0] = 0.0f;
317 region->
v2d.
min[1] = 0.0f;
320 region->
v2d.
max[1] = FLT_MAX;
341 memcpy(®ion->
v2d, &sseq->v2d,
sizeof(
View2D));
351 memcpy(®ion->
v2d, &snode->v2d,
sizeof(
View2D));
359 memcpy(®ion->
v2d, &sbuts->v2d,
sizeof(
View2D));
395 if (
area->headertype) {
402 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
409 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
416 if (
area->spacedata.first) {
417 sl =
area->spacedata.first;
418 for (sl = sl->
next; sl; sl = sl->
next) {
419 if (
area->headertype) {
443 printf(
"Converted GPencil to ID: %s\n",
id->
name + 2);
454 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
497 for (ob =
main->objects.first; ob; ob = ob->
id.
next) {
519 for (con = lb->
first; con; con = con->
next) {
602 switch (sock->
type) {
605 "default socket value");
606 valfloat->
value = sock->ns.vec[0];
607 valfloat->
min = sock->ns.min;
608 valfloat->
max = sock->ns.max;
613 "default socket value");
615 valvector->
min = sock->ns.min;
616 valvector->
max = sock->ns.max;
621 "default socket value");
636 #define SEQ_USE_PROXY_CUSTOM_DIR (1 << 19)
637 #define SEQ_USE_PROXY_CUSTOM_FILE (1 << 21)
642 #undef SEQ_USE_PROXY_CUSTOM_DIR
643 #undef SEQ_USE_PROXY_CUSTOM_FILE
655 if (seq->
sat == 0.0f) {
719 enum { R_PANORAMA = (1 << 10) };
725 if (sce->
r.
mode & R_PANORAMA) {
726 for (base = sce->base.first; base; base = base->
next) {
731 cam->
flag |= CAM_PANORAMA;
735 sce->
r.
mode &= ~R_PANORAMA;
782 for (pid = pidlist.
first; pid; pid = pid->
next) {
814 for (pid = pidlist.
first; pid; pid = pid->
next) {
828 ob->
matbits[
a] = (ob->colbits & (1 <<
a)) != 0;
862 if (ob->
flag & 8192) {
885 fluidmd->
fss->
fmd = fluidmd;
999 for (
a = 0;
a < tot;
a++,
data += 3) {
1010 for (
a = 0;
a < tot;
a++,
data += 3) {
1024 for (
a = 0;
a < nu->
pntsu;
a++, bezt++) {
1095 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1137 for (i = 0; i < band->
tot; i++) {
1205 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1210 if (sl ==
area->spacedata.first) {
1211 regionbase = &
area->regionbase;
1217 for (region = regionbase->
first; region; region = region->
next) {
1243 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1250 if (sl ==
area->spacedata.first) {
1251 regionbase = &
area->regionbase;
1257 if (sseq->
view == 0) {
1260 if (sseq->
mainb == 0) {
1265 for (; region_main; region_main = region_main->
next) {
1306 if (arm->
pathflag & ARM_PATH_FNUMS) {
1309 if (arm->
pathflag & ARM_PATH_KFRAS) {
1312 if (arm->
pathflag & ARM_PATH_KFNOS) {
1317 if (arm->
pathflag & ARM_PATH_HEADS) {
1322 if (arm->
pathflag & ARM_PATH_ACFRA) {
1376 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1380 if (sl ==
area->spacedata.first) {
1381 regionbase = &
area->regionbase;
1388 for (region = (
ARegion *)regionbase->
first; region; region = region->
next) {
1439 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1444 if (sl ==
area->spacedata.first) {
1445 regionbase = &
area->regionbase;
1452 for (; region_preview; region_preview = region_preview->
next) {
1478 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1564 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1586 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1592 if (sl ==
area->spacedata.first) {
1593 regionbase = &
area->regionbase;
1599 if (snode->v2d.minzoom > 0.09f) {
1600 snode->v2d.minzoom = 0.09f;
1602 if (snode->v2d.maxzoom < 2.31f) {
1603 snode->v2d.maxzoom = 2.31f;
1606 for (region = regionbase->
first; region; region = region->
next) {
1628 enum { PARCURVE = 1 };
1662 for (i = 0; i < 20; i++) {
1663 if (
scene->lay & (1 << i)) {
1664 scene->layact = 1 << i;
1702 if (brush->
alpha == 0) {
1703 brush->
alpha = 1.0f;
1712 if (brush->
size == 0) {
1742 if (brush->
rate == 0) {
1774 if (sce->
toolsettings->sculpt_paint_unified_alpha == 0) {
1778 if (sce->
toolsettings->sculpt_paint_unified_unprojected_radius == 0) {
1779 sce->
toolsettings->sculpt_paint_unified_unprojected_radius = 0.125f;
1782 if (sce->
toolsettings->sculpt_paint_unified_size == 0) {
1858 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1865 for (region =
area->regionbase.first; region; region = region->
next) {
1909 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
1974 for (sock =
node->inputs.first; sock; sock = sock->
next) {
1979 for (sock =
node->outputs.first; sock; sock = sock->
next) {
1988 for (sock =
node->inputs.first; sock; sock = sock->
next) {
2012 for (sock =
node->outputs.first; sock; sock = sock->
next) {
2060 if (brush->
height == 0) {
2071 if (smd->
flag & MOD_SOLIDIFY_RIM_MATERIAL) {
2073 smd->
flag &= ~MOD_SOLIDIFY_RIM_MATERIAL;
2127 for (region =
area->regionbase.first; region; region = region->
next) {
2136 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
2183 for (region =
area->regionbase.first; region; region = region->
next) {
2185 if (region->
v2d.
min[1] == 4.0f) {
2186 region->
v2d.
min[1] = 0.5f;
2191 for (sl =
area->spacedata.first; sl; sl = sl->
next) {
2196 if (region->
v2d.
min[1] == 4.0f) {
2197 region->
v2d.
min[1] = 0.5f;
2224 if ((fcu->
flag & FCURVE_AUTO_HANDLES) == 0) {
2232 for (bezt = fcu->
bezt; i < fcu->totvert; i++, bezt++) {
2241 fcu->
flag &= ~FCURVE_AUTO_HANDLES;
2255 for (sock =
node->inputs.first; sock; sock = sock->
next) {
2258 for (sock =
node->outputs.first; sock; sock = sock->
next) {
2309 for (sock = gnode->
outputs.
first; sock; sock = sock->next) {
2310 int old_index = sock->to_index;
2312 for (link = ngroup->
links.
first; link; link = link->next) {
2313 if (link->tonode ==
NULL && link->fromsock->own_index == old_index) {
2314 strcpy(sock->identifier, link->fromsock->identifier);
2316 sock->own_index = link->fromsock->own_index;
2318 sock->groupsock =
NULL;
2322 for (sock = gnode->
inputs.
first; sock; sock = sock->next) {
2323 int old_index = sock->to_index;
2325 for (link = ngroup->
links.
first; link; link = link->next) {
2326 if (link->fromnode ==
NULL && link->tosock->own_index == old_index) {
2327 strcpy(sock->identifier, link->tosock->identifier);
2329 sock->own_index = link->tosock->own_index;
2331 sock->groupsock =
NULL;
2373 if ((nla_strip->act) && (nla_strip->act->idroot == 0)) {
2374 nla_strip->act->idroot =
GS(
id->
name);
typedef float(TangentPoint)[2]
struct AnimData * BKE_animdata_from_id(const 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 Main *bmain, struct ListBase *lb, struct ID *id, const char *name, bool do_linked_data) 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_ntree_update_tag_interface(struct bNodeTree *ntree)
void BKE_ntree_update_tag_all(struct bNodeTree *ntree)
void BKE_ntree_update_tag_link_added(struct bNodeTree *ntree, struct bNodeLink *link)
void BKE_ptcache_ids_from_object(struct ListBase *lb, struct Object *ob, struct Scene *scene, int duplis)
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)
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)
void void BLI_freelistN(struct ListBase *listbase) 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
bool BLI_path_abs(char *path, const char *basepath) ATTR_NONNULL()
void BLI_join_dirfile(char *__restrict dst, size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t BLI_snprintf(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
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.
int main(int argc, char *argv[])
void SEQ_for_each_callback(ListBase *seqbase, SeqForEachFunc callback, void *user_data)
void *(* MEM_calloc_arrayN)(size_t len, size_t size, const char *str)
void *(* MEM_callocN)(size_t len, const char *str)
static void area(int d1, int d2, int e1, int e2, float weights[2])
static const pxr::TfToken st("st", pxr::TfToken::Immortal)
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 ModifierData * next
struct OceanCache * oceancache
struct ListBase * ptcaches
struct PointCache * cache
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 * next
struct bNodeSocket * prev
struct bPoseChannel * next
struct PackedFile * packedfile
struct PackedFile * newpackedfile
static void versions_gpencil_add_main(Main *bmain, ListBase *lb, ID *id, const char *name)
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 bool seq_set_pitch_cb(Sequence *seq, void *UNUSED(user_data))
static bool seq_set_volume_cb(Sequence *seq, void *UNUSED(user_data))
#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 bool seq_sound_proxy_update_cb(Sequence *seq, void *user_data)
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 bool seq_set_sat_cb(Sequence *seq, void *UNUSED(user_data))
static void area_add_header_region(ScrArea *area, ListBase *lb)