18#define DNA_DEPRECATED_ALLOW
86#define U (*((const UserDef *)&U))
125 region->
v2d.
min[0] = 0.0f;
126 region->
v2d.
min[1] = 0.0f;
127 region->
v2d.
max[0] = 12000.0f;
128 region->
v2d.
max[1] = 12000.0f;
205 ARegion *region_main =
nullptr;
206 for (
ARegion ®ion_iter : *lb) {
208 region_main = ®ion_iter;
273 memcpy(®ion->
v2d, &space_outliner->
v2d,
sizeof(
View2D));
326 region->
v2d.
min[0] = 0.0f;
327 region->
v2d.
min[1] = 0.0f;
345 saction->
action =
nullptr;
425 for (sl = sl->
next; sl; sl = sl->
next) {
436 ListBaseT<bGPdata> *lb,
454 printf(
"Converted GPencil to ID: %s\n",
id->name + 2);
467 main, &
main->gpencils,
reinterpret_cast<ID *
>(v3d->
gpd),
"GPencil View3D");
475 main, &
main->gpencils,
reinterpret_cast<ID *
>(snode->
gpd),
"GPencil Node");
476 snode->
gpd =
nullptr;
483 main, &
main->gpencils,
reinterpret_cast<ID *
>(sseq->
gpd),
"GPencil Node");
567 bNodeSocket *gsock = MEM_new<bNodeSocket>(
"bNodeSocket");
572 gsock->
next = gsock->
prev =
nullptr;
573 gsock->
link =
nullptr;
606 switch (sock->
type) {
608 valfloat = MEM_new<bNodeSocketValueFloat>(
"default socket value");
616 valvector = MEM_new<bNodeSocketValueVector>(
"default socket value");
624 valrgba = MEM_new<bNodeSocketValueRGBA>(
"default socket value");
635#define STRIP_USE_PROXY_CUSTOM_DIR (1 << 19)
636#define STRIP_USE_PROXY_CUSTOM_FILE (1 << 21)
641#undef STRIP_USE_PROXY_CUSTOM_DIR
642#undef STRIP_USE_PROXY_CUSTOM_FILE
648 strip->volume = 1.0f;
654 if (strip->sat == 0.0f) {
662 strip->pitch_legacy = 1.0f;
673 ListBaseT<PTCacheID> pidlist;
698 if (ma.nodetree && ma.nodetree->id.name[0] ==
'\0') {
699 STRNCPY_UTF8(ma.nodetree->id.name,
"NTShader Nodetree");
705 enum { R_PANORAMA = (1 << 10) };
711 if (sce.
r.
mode & R_PANORAMA) {
722 sce.
r.
mode &= ~R_PANORAMA;
770 pidlist.free_no_destruct();
784 ListBaseT<PTCacheID> pidlist;
792 if (pid.ptcaches->is_empty()) {
793 pid.ptcaches->first_ = pid.ptcaches->last_ = pid.cache;
797 pidlist.free_no_destruct();
804 for (a = 0; a < ob.
totcol; a++) {
830 if (ob.
flag & 8192) {
837 bool do_gravity =
false;
850 fluidmd->
fss->
fmd = fluidmd;
948 Key *key =
static_cast<Key *
>(
953 MVert *verts =
static_cast<MVert *
>(
955 for (a = 0; a < tot; a++,
data += 3) {
962 Key *key =
static_cast<Key *
>(
968 for (a = 0; a < tot; a++,
data += 3) {
975 Key *key =
static_cast<Key *
>(
984 for (a = 0; a < nu.
pntsu; a++, bezt++) {
998 for (a = 0; a < nu.
pntsu * nu.
pntsv; a++, bp++) {
1087 ma =
static_cast<Material *
>(ma->id.next);
1093 for (i = 0; i < band->
tot; i++) {
1152 ListBaseT<ARegion> *regionbase;
1161 for (
ARegion ®ion : *regionbase) {
1182 ListBaseT<ARegion> *regionbase;
1192 if (sseq->
view == 0) {
1195 if (sseq->
mainb == 0) {
1199 ARegion *region_main =
nullptr;
1200 for (
ARegion ®ion : *regionbase) {
1202 region_main = ®ion;
1240 if (arm->
pathflag & ARM_PATH_FNUMS) {
1243 if (arm->
pathflag & ARM_PATH_KFRAS) {
1246 if (arm->
pathflag & ARM_PATH_KFNOS) {
1251 if (arm->
pathflag & ARM_PATH_HEADS) {
1256 if (arm->
pathflag & ARM_PATH_ACFRA) {
1303 ListBaseT<ARegion> *regionbase;
1313 for (
ARegion ®ion : *regionbase) {
1315 region.v2d.cur.ymax = region.v2d.tot.ymax = 0.0f;
1316 region.v2d.cur.ymin = region.v2d.tot.ymin =
float(-area.
winy) / 3.0f;
1361 ListBaseT<ARegion> *regionbase;
1370 for (
ARegion ®ion_preview : *regionbase) {
1402 if (
brush.curve_distance_falloff) {
1482 ListBaseT<ARegion> *regionbase;
1494 for (
ARegion ®ion : *regionbase) {
1496 region.v2d.minzoom = std::min(region.v2d.minzoom, 0.09f);
1497 region.v2d.maxzoom = std::max(region.v2d.maxzoom, 2.31f);
1549 for (i = 0; i < 20; i++) {
1550 if (scene.
lay & (1 << i)) {
1581 if (
brush.spacing == 0) {
1586 if (
brush.alpha == 0) {
1591 if (
brush.unprojected_size == 0) {
1592 brush.unprojected_size = 0.125f;
1596 if (
brush.size == 0) {
1601 if (
brush.texture_overlay_alpha == 0) {
1602 brush.texture_overlay_alpha = 33;
1606 if (
brush.crease_pinch_factor == 0) {
1607 brush.crease_pinch_factor = 0.5f;
1611 if (
brush.plane_trim == 0) {
1612 brush.plane_trim = 0.5f;
1616 if (
brush.smooth_stroke_radius == 0) {
1617 brush.smooth_stroke_radius = 75;
1621 if (
brush.smooth_stroke_radius == 1) {
1622 brush.smooth_stroke_factor = 0.9f;
1626 if (
brush.rate == 0) {
1639 if (
brush.add_col[0] == 0 &&
brush.add_col[1] == 0 &&
brush.add_col[2] == 0) {
1640 brush.add_col[0] = 1.00f;
1641 brush.add_col[1] = 0.39f;
1642 brush.add_col[2] = 0.39f;
1645 if (
brush.sub_col[0] == 0 &&
brush.sub_col[1] == 0 &&
brush.sub_col[2] == 0) {
1646 brush.sub_col[0] = 0.39f;
1647 brush.sub_col[1] = 0.39f;
1648 brush.sub_col[2] = 1.00f;
1851 bNodeLink *link = MEM_new<bNodeLink>(
"link");
1876 bNodeLink *link = MEM_new<bNodeLink>(
"link");
1907 if (
brush.height == 0) {
1908 brush.height = 0.4f;
1917 if (smd->
flag & MOD_SOLIDIFY_RIM_MATERIAL) {
1919 smd->
flag &= ~MOD_SOLIDIFY_RIM_MATERIAL;
2020 if (region.
v2d.
min[1] == 4.0f) {
2021 region.
v2d.
min[1] = 0.5f;
2030 if (region.
v2d.
min[1] == 4.0f) {
2031 region.
v2d.
min[1] = 0.5f;
2053 if ((fcu.
flag & FCURVE_AUTO_HANDLES) == 0) {
2056 if ((fcu.
totvert == 0) || (fcu.
bezt ==
nullptr)) {
2061 for (bezt = fcu.
bezt; i < fcu.
totvert; i++, bezt++) {
2070 fcu.
flag &= ~FCURVE_AUTO_HANDLES;
2121 if (adt !=
nullptr) {
CustomData interface, see also DNA_customdata_types.h.
#define FOREACH_MAIN_ID_END
#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver)
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
#define FOREACH_NODETREE_END
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
#define CMP_NODE_COLORBALANCE
#define SNPRINTF(dst, format,...)
#define STRNCPY_UTF8(dst, src)
Compatibility-like things for windows.
external readfile function prototypes.
#define ID_IS_LINKED(_id)
#define OB_MODE_ALL_PAINT_MESH
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
const T & data(const Action &owning_action) const
void settings_init(struct bAnimVizSettings *avs)
int node_count_socket_links(const bNodeTree &ntree, const bNodeSocket &sock)
void node_unique_name(bNodeTree &ntree, bNode &node)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
bool version_node_ensure_storage_or_invalidate(bNode &node)
static bool strip_set_volume_cb(Strip *strip, void *)
void sequencer_init_preview_region(ARegion *region)
void BKE_ntree_update_tag_link_added(bNodeTree *ntree, bNodeLink *link)
bool CustomData_free_layer_active(CustomData *data, eCustomDataType type)
static void versions_gpencil_add_main(Main *bmain, ListBaseT< bGPdata > *lb, ID *id, const char *name)
static void do_versions_gpencil_2_50(Main *main, bScreen *screen)
MINLINE void copy_v3_v3(float r[3], const float a[3])
@ V2D_VIEWSYNC_AREA_VERTICAL
void copy_m3_m4(float m1[3][3], const float m2[4][4])
void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll)
@ CONSTRAINT_TYPE_KINEMATIC
@ CONSTRAINT_TYPE_ROTLIMIT
void * blo_do_versions_newlibadr(FileData *fd, ID *self_id, const bool is_linked_only, const void *adr)
void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3])
void BKE_lib_libblock_session_uid_ensure(ID *id)
void BKE_area_region_free(SpaceType *st, ARegion *region)
@ eModifierType_MeshDeform
MINLINE bool is_zero_v4(const float v[4]) ATTR_WARN_UNUSED_RESULT
static void area_add_window_regions(ScrArea *area, SpaceLink *sl, ListBaseT< ARegion > *lb)
void unit_axis_angle(float axis[3], float *angle)
static void do_version_mdef_250(Main *main)
AnimData * BKE_animdata_from_id(const ID *id)
void blo_do_versions_250(FileData *fd, Library *lib, Main *bmain)
static void area_add_header_region(ScrArea *area, ListBaseT< ARegion > *lb)
static bool strip_set_sat_cb(Strip *strip, void *)
BMesh const char void * data
ModifierData * BKE_modifier_new(int type)
static void do_version_constraints_radians_degrees_250(ListBaseT< bConstraint > *lb)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_texture_mtex_default(struct MTex *mtex)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
void blo_do_version_old_trackto_to_constraints(Object *ob)
SpaceType * BKE_spacetype_from_id(int spaceid)
void BKE_ptcache_ids_from_object(ListBaseT< PTCacheID > *lb, struct Object *ob, struct Scene *scene, int duplis)
void BKE_ntree_update_tag_all(bNodeTree *ntree)
ARegion * BKE_area_region_new()
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
@ OB_FLUIDSIM_OVERRIDE_TIME
static void do_version_bone_roll_256(Bone *bone)
void BKE_screen_view3d_do_versions_250(View3D *v3d, ListBaseT< ARegion > *regions)
@ V2D_SCROLL_HORIZONTAL_HANDLES
@ V2D_SCROLL_VERTICAL_HANDLES
ModifierData * BKE_modifiers_findby_type(const Object *ob, ModifierType type)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_scopes_new(Scopes *scopes)
static bool strip_set_pitch_cb(Strip *strip, void *)
MINLINE void copy_v4_v4(float r[4], const float a[4])
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_socket_default_value_259(bNodeSocket *sock)
void * CustomData_get_layer_for_write(CustomData *data, eCustomDataType type, int totelem)
void do_versions_after_linking_250(Main *bmain)
@ FLUID_FLOW_INITVELOCITY
void BKE_modifier_mdef_compact_influences(ModifierData *md)
static void do_versions_windowmanager_2_50(bScreen *screen)
MINLINE bool is_zero_v3(const float v[3]) ATTR_WARN_UNUSED_RESULT
static bool strip_sound_proxy_update_cb(Strip *strip, void *)
IDNewNameResult BKE_id_new_name_validate(Main &bmain, ListBaseT< ID > &lb, ID &id, const char *newname, IDNewNameMode mode, bool do_linked_data)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
eRegion_Alignment alignment
ListBaseT< NlaTrack > nla_tracks
ListBaseT< Bone > childbase
struct ClothSimSettings * sim_parms
struct EffectorWeights * effector_weights
ListBaseT< Strip > seqbase
eFFMpegAudioChannels audio_channels
struct FluidFlowSettings * flow
struct FluidDomainSettings * domain
struct FluidsimSettings * fss
struct FluidsimModifierData * fmd
ListBaseT< KeyBlock > block
ListBaseT< Key > shapekeys
ListBaseT< bArmature > armatures
ListBaseT< Lattice > lattices
ListBaseT< bNodeTree > nodetrees
ListBaseT< Brush > brushes
ListBaseT< Material > materials
ListBaseT< Object > objects
ListBaseT< Curve > curves
ListBaseT< bSound > sounds
ListBaseT< ParticleSettings > particles
ListBaseT< bAction > actions
ListBaseT< Scene > scenes
ListBaseT< Tex > textures
ListBaseT< bScreen > screens
ListBaseT< NlaStrip > strips
DNA_DEPRECATED float percentx
DNA_DEPRECATED float percenty
DNA_DEPRECATED float lift[3]
ListBaseT< ModifierData > modifiers
DNA_DEPRECATED short colbits
ListBaseT< bConstraint > constraints
struct OceanCache * oceancache
ParticleBrushData brush[7]
DNA_DEPRECATED float bb_size[2]
struct BoidSettings * boids
eParticleTimeFlag time_flag
eParticleDrawCol draw_col
struct EffectorWeights * effector_weights
struct FFMpegCodecData ffcodecdata
struct PhysicsSettings physics_settings
DNA_DEPRECATED int layact
DNA_DEPRECATED struct bNodeTree * nodetree
DNA_DEPRECATED unsigned int lay
struct ToolSettings * toolsettings
ListBaseT< ARegion > regionbase
DNA_DEPRECATED char headertype
ListBaseT< SpaceLink > spacedata
struct EffectorWeights * effector_weights
SolidifyModifierFlag flag
DNA_DEPRECATED bAction * action
DNA_DEPRECATED View2D v2d
struct Histogram sample_line_hist
ListBaseT< ARegion > regionbase
DNA_DEPRECATED View2D v2d
DNA_DEPRECATED View2D v2d
DNA_DEPRECATED View2D v2d
DNA_DEPRECATED View2D v2d
DNA_DEPRECATED View2D v2d
eSpaceSeq_RegionType mainb
struct bNodeTree * nodetree
eView2D_KeepZoom keepzoom
DNA_DEPRECATED struct bGPdata * gpd
DNA_DEPRECATED char drawtype
ListBaseT< FCurve > curves
eMotionPath_BakeFlag path_bakeflag
eMotionPaths_ViewFlag path_viewflag
eMotionPaths_Types path_type
eArmature_DeformFlag deformflag
ListBaseT< Bone > bonebase
struct bNodeSocket * prev
DNA_DEPRECATED int own_index
DNA_DEPRECATED bNodeStack ns
struct bNodeSocket * next
ListBaseT< bNodeLink > links
DNA_DEPRECATED ListBaseT< bNodeSocket > outputs_legacy
bNodeTreeInterface tree_interface
DNA_DEPRECATED ListBaseT< bNodeSocket > inputs_legacy
ListBaseT< struct bConstraint > constraints
ListBaseT< bPoseChannel > chanbase
ListBaseT< struct ScrArea > areabase
eScreen_Redraws_Flag redraws_flag
struct PackedFile * newpackedfile
struct PackedFile * packedfile
#define STRIP_USE_PROXY_CUSTOM_DIR
#define STRIP_USE_PROXY_CUSTOM_FILE