10#define DNA_DEPRECATED_ALLOW
24#define DNA_GENFILE_VERSIONING_MACROS
63#undef DNA_GENFILE_VERSIONING_MACROS
119#define U (*((const UserDef *)&U))
127 if (area.
full && area.
full != screen) {
157 if (workspace ==
nullptr) {
215 bScreen *screen = screen_parent ? screen_parent : win.
screen;
257 screen.
scene =
nullptr;
281 if (collections[
layer] ==
nullptr) {
291 collections[
layer] = collection;
313 bool have_override =
false;
314 const bool need_default_renderlayer = scene->
r.
layers.first() ==
nullptr;
345 if (
srl.lay_exclude & (1 <<
layer)) {
347 have_override =
true;
355 have_override =
true;
359 if ((
srl.lay & (1 <<
layer)) == 0) {
360 have_override =
true;
380 scene->
r.
layers.free_no_destruct();
384 if (have_override || need_default_renderlayer) {
407 base.lay = base.object->lay;
416 scene->
base.free_no_destruct();
469 for (region = regionbase->first(); region; region = region_next) {
470 region_next =
static_cast<ARegion *
>(region->
next);
479 for (
ARegion ®ion : *regionbase) {
480 if (region.regiontype == regiontype) {
490 if (region ==
nullptr) {
497 const short space_type,
498 const short region_flag)
522 for (
Bone &bone : *lb) {
523 bone.scale_in_z = bone.scale_in_x;
524 bone.scale_out_z = bone.scale_out_x;
532 for (
Bone &bone : *lb) {
533 if (bone.flag & BONE_NO_SCALE) {
535 bone.flag &= ~BONE_NO_SCALE;
547 if (old_path ==
nullptr) {
566 MEM_delete(dtar->rna_path);
567 dtar->rna_path = new_path;
576 fcu->rna_path_set_move(new_path);
581 char *second_path =
BLI_strdup(second->rna_path().c_str());
582 second_path[strlen(second_path) - 1] =
'y';
583 second->rna_path_set_move(second_path);
622 data->flag &= ~ROTLIKE_OFFSET;
629 for (
Strip &strip : *seqbase) {
631 if (strip.data->transform ==
nullptr) {
632 strip.data->transform = MEM_new<StripTransform>(
"StripTransform");
635 if (strip.data->crop ==
nullptr) {
636 strip.data->crop = MEM_new<StripCrop>(
"StripCrop");
639 if (strip.seqbase.first() !=
nullptr) {
649 bool need_update =
false;
653 for (
bNodeLink *link = ntree->
links.last(); link; link = prevlink) {
654 prevlink =
static_cast<bNodeLink *
>(link->prev);
657 bNode *fromnode = link->fromnode;
659 bNode *tonode = link->tonode;
676 if (blend_method == MA_BM_ADD) {
700 else if (blend_method == MA_BM_MULTIPLY) {
752 if (cumap ==
nullptr) {
756#define CUMA_EXTEND_EXTRAPOLATE_OLD 1
757 for (
int curve_map_index = 0; curve_map_index < 4; curve_map_index++) {
764#undef CUMA_EXTEND_EXTRAPOLATE_OLD
777 if (scene.
ed !=
nullptr) {
843 if (
brush.curve_distance_falloff) {
844 callback(
brush.curve_distance_falloff);
846 if (
brush.gpencil_settings) {
847 if (
brush.gpencil_settings->curve_sensitivity) {
848 callback(
brush.gpencil_settings->curve_sensitivity);
850 if (
brush.gpencil_settings->curve_strength) {
851 callback(
brush.gpencil_settings->curve_strength);
853 if (
brush.gpencil_settings->curve_jitter) {
854 callback(
brush.gpencil_settings->curve_jitter);
1017 bool need_update =
false;
1022 bNode *fromnode = link.fromnode;
1024 bNode *tonode = link.tonode;
1079 auto check_node = [](
const bNode *
node) {
1090 auto update_input_link =
1095 node->locx_legacy = 0.5f * (fromnode->
locx_legacy + tonode->locx_legacy);
1096 node->locy_legacy = 0.5f * (fromnode->
locy_legacy + tonode->locy_legacy);
1126 for (
int curve_index = 0; curve_index <
CM_TOT; curve_index++) {
1129 for (
int i = 0; i < cm->
totpoint; i++) {
1142 bool need_update =
false;
1158 bNode *fromnode = link.fromnode;
1159 bNode *tonode = link.tonode;
1181 if (
node->id ==
nullptr) {
1198 enum { SHD_COLORSPACE_NONE = 0 };
1200 if (color_space == SHD_COLORSPACE_NONE) {
1213 if (ntree ==
nullptr || ntree->
adt) {
1219 if (output_node ==
nullptr) {
1223 bNode *emission_node =
nullptr;
1231 if (emission_node ==
nullptr) {
1246 *energy = *strength_value;
1249 *strength_value = 1.0f;
1251 light->use_nodes =
false;
1257 light->energy_deprecated *= 100.0f;
1261 bool use_nodes = light->use_nodes;
1262 float energy,
color[3];
1265 if (
STREQ(engine,
"CYCLES")) {
1268 light->energy_deprecated = energy;
1274 light->energy_deprecated = 1.0f;
1277 light->energy_deprecated = 100.0f;
1283 light->use_nodes =
false;
1294 bool need_update =
false;
1344 bool need_update =
false;
1367 if (link.fromsock == sockOutValue) {
1397 bool need_update =
false;
1406 if (link.fromsock == sockOutVector) {
1407 switch (link.tosock->type) {
1440 bool need_update =
false;
1452 *normalizeNode,
SOCK_OUT,
"Vector"_ustr);
1455 if (link.fromsock == sockOutVector) {
1457 *ntree, *normalizeNode, *sockNormalizeOut, *link.tonode, *link.tosock);
1482 if (link.fromsock == sockOutValue) {
1510 bool need_update =
false;
1524 *lengthNode,
SOCK_OUT,
"Value"_ustr);
1527 if (link.fromsock == sockOutValue) {
1529 *ntree, *lengthNode, *sockLengthValue, *link.tonode, *link.tosock);
1577 switch (
node.custom1) {
1600 bool need_update =
false;
1605 if (
node.custom1 == -1) {
1614 *normalizeNode,
SOCK_OUT,
"Vector"_ustr);
1617 if (link.fromsock == sockOutVector) {
1619 *ntree, *normalizeNode, *sockNormalizeOut, *link.tonode, *link.tosock);
1644 if (link.fromsock == sockOutValue) {
1692 const char *nodePath,
1693 const bNode *minimumNode,
1694 const bNode *maximumNode)
1696 if (!
STRPREFIX(fcurve->rna_path().c_str(), nodePath) ||
1701 const char *old_fcurve_rna_path = fcurve->rna_path().c_str();
1704 fcurve->rna_path_set_move(
BLI_sprintfN(
"%s.%s", nodePath,
"inputs[1].default_value"));
1707 fcurve->rna_path_set_move(
BLI_sprintfN(
"%s.%s", nodePath,
"inputs[2].default_value"));
1710 fcurve->rna_path_set_move(
BLI_sprintfN(
"%s.%s", nodePath,
"inputs[3].default_value"));
1713 char node_name_esc[
sizeof(minimumNode->
name) * 2];
1715 fcurve->rna_path_set_move(
1716 BLI_sprintfN(
"nodes[\"%s\"].%s", node_name_esc,
"inputs[1].default_value"));
1719 char node_name_esc[
sizeof(maximumNode->
name) * 2];
1721 fcurve->rna_path_set_move(
1722 BLI_sprintfN(
"nodes[\"%s\"].%s", node_name_esc,
"inputs[1].default_value"));
1746 bool need_update =
false;
1755 node.width = 140.0f;
1764 bNode *maximumNode =
nullptr;
1781 if (link.fromsock == sockMappingResult) {
1783 *maximumNode,
SOCK_OUT,
"Vector"_ustr);
1785 *ntree, *maximumNode, *sockMaximumResult, *link.tonode, *link.tosock);
1798 bNode *minimumNode =
nullptr;
1809 *minimumNode,
SOCK_OUT,
"Vector"_ustr);
1816 *ntree, *minimumNode, *sockMinimumResult, *maximumNode, *sockMaximumA);
1820 if (link.fromsock == sockMappingResult) {
1822 *ntree, *minimumNode, *sockMinimumResult, *link.tonode, *link.tosock);
1834 MEM_delete(mapping);
1835 node.storage =
nullptr;
1837 char node_name_esc[
sizeof(
node.name) * 2];
1840 char *nodePath =
BLI_sprintfN(
"nodes[\"%s\"]", node_name_esc);
1842 update_mapping_node_fcurve_rna_path_callback(fcu, nodePath, minimumNode, maximumNode);
1844 MEM_delete(nodePath);
1946 bool need_update =
false;
1970 *voronoiNode,
SOCK_IN,
"Vector"_ustr);
1973 *voronoiNode,
SOCK_IN,
"Exponent"_ustr);
1974 if (sockVector->
link) {
1979 *sockVoronoiVector);
1983 if (sockScale->
link) {
1992 if (sockExponent->
link) {
1997 *sockVoronoiExponent);
2005 *subtractNode,
SOCK_OUT,
"Value"_ustr);
2008 if (link.fromnode == &
node) {
2010 *ntree, *subtractNode, *sockSubtractOutValue, *link.tonode, *link.tosock);
2017 *voronoiNode,
SOCK_OUT,
"Distance"_ustr);
2024 bke::node_add_link(*ntree, *voronoiNode, *sockDistanceF2, *subtractNode, *sockSubtractA);
2046 bool need_update =
false;
2054 if (link.fromsock == sockColor) {
2063 if (link.fromsock == sockDistance) {
2084 bool need_update =
false;
2101 if (link.fromsock == sockDistance) {
2132 bool need_update =
false;
2156 *ntree, *distortionInputNode, *distortionInputSock, *mulNode, *mulSockA);
2161 else if (*distortion != 0.0f) {
2162 *distortion = *distortion * 0.5f;
2212 Collection *hidden_collection_array[20] = {
nullptr};
2216 cob_next = cob->next;
2219 if (!(ob->
lay & collection.
layer)) {
2223 for (; coll_idx < 20; coll_idx++) {
2224 if (ob->
lay & (1 << coll_idx)) {
2225 collection_hidden = &hidden_collection_array[coll_idx];
2229 if (collection_hidden ==
nullptr) {
2233 collection_hidden = &hidden_collection_array[0];
2236 if (*collection_hidden ==
nullptr) {
2269 "No Screen data-block should ever have a nullptr `scene` pointer");
2282 if (
layer->layer_collections.is_single()) {
2283 if (space_outliner->
treestore ==
nullptr) {
2294 tselem->
id = &(
layer->layer_collections.first())->collection->id;
2295 tselem->
nr = tselem->
used = 0;
2310 if ((sima) && (sima->
gpd)) {
2318 if ((clip) && (clip->
gpd)) {
2343 scene.
r.
layers.free_no_destruct();
2353 if (psys.part->draw_size == 0.0f) {
2354 psys.part->draw_size = 0.1f;
2362 if (
object.particlesystem.first_) {
2365 if (psys.part->draw & PART_DRAW_EMITTER) {
2371 else if (
object.transflag &
OB_DUPLI) {
2381 part.
draw &= ~PART_DRAW_EMITTER;
2390 if (
wm !=
nullptr) {
2407 if (scene !=
nullptr) {
2461 int old_count = block.
totelem;
2462 void *old_data = block.
data;
2464 if (!old_data || old_count <= 0) {
2471 float *oldptr =
static_cast<float *
>(old_data);
2472 float (*newptr)[3] =
static_cast<float (*)[3]
>(block.
data);
2476 BezTriple *bezt = nu.bezt;
2478 for (int a = 0; a < nu.pntsu; a++, bezt++) {
2479 if ((old_count -= 3) < 0) {
2480 memcpy(newptr, bezt->vec, sizeof(float[3][3]));
2481 newptr[3][0] = bezt->tilt;
2484 memcpy(newptr, oldptr, sizeof(float[3][4]));
2487 newptr[3][1] = bezt->radius;
2496 for (int a = 0; a < nu.pntsu * nu.pntsv; a++, bp++) {
2497 if (--old_count < 0) {
2498 copy_v3_v3(newptr[0], bp->vec);
2499 newptr[1][0] = bp->tilt;
2502 memcpy(newptr, oldptr, sizeof(float[4]));
2505 newptr[1][1] = bp->radius;
2522 if (ob.pose && ob.data && ob.data->lib == ob.id.lib) {
2523 bArmature *arm = id_cast<bArmature *>(ob.data);
2524 bool rebuild =
false;
2526 for (bPoseChannel &pchan : ob.pose->chanbase) {
2528 Bone *pchan_bone = pchan.bone_get(ob);
2529 if (pchan_bone && (pchan.bboneflag & PCHAN_BBONE_CUSTOM_HANDLES)) {
2531 if (pchan_bone->bbone_prev_type == BBONE_HANDLE_AUTO &&
2532 pchan_bone->bbone_next_type == BBONE_HANDLE_AUTO &&
2533 pchan_bone->bbone_prev ==
nullptr && pchan_bone->bbone_next ==
nullptr)
2535 pchan_bone->bbone_prev_type = (pchan.bboneflag & PCHAN_BBONE_CUSTOM_START_REL) ?
2536 BBONE_HANDLE_RELATIVE :
2538 pchan_bone->bbone_next_type = (pchan.bboneflag & PCHAN_BBONE_CUSTOM_END_REL) ?
2539 BBONE_HANDLE_RELATIVE :
2542 if (pchan.bbone_prev) {
2543 pchan_bone->bbone_prev = pchan.bbone_prev->bone_get(ob);
2545 if (pchan.bbone_next) {
2546 pchan_bone->bbone_next = pchan.bbone_next->bone_get(ob);
2551 pchan.bboneflag = 0;
2558 if (ob2.pose && ob2.data == id_cast<ID *>(arm)) {
2568 for (Brush &brush : bmain->
brushes) {
2569 if (brush.gpencil_settings !=
nullptr) {
2570 brush.gpencil_brush_type =
eBrushGPaintType(brush.gpencil_settings->brush_type);
2579 RigidBodyWorld *rbw = scene.rigidbody_world;
2581 if (rbw ==
nullptr) {
2594 if (
STREQ(scene.r.engine, RE_engine_id_BLENDER_EEVEE)) {
2595 if (scene.eevee.flag & SCE_EEVEE_DOF_ENABLED_V) {
2597 if (cam_ob && cam_ob->
type == OB_CAMERA) {
2598 Camera *cam = id_cast<Camera *>(cam_ob->data);
2609 camera.dof.aperture_rotation =
camera.gpu_dof.rotation;
2611 camera.dof.aperture_blades =
camera.gpu_dof.num_blades;
2621 if (ntree->type != NTREE_SHADER) {
2627 for (bNode &
node : ntree->nodes) {
2633 for (bNode &
node : ntree->nodes) {
2645 for (bNode &
node : ntree->nodes) {
2662 for (bNode &
node : ntree->nodes) {
2673 const char *engine = (scene) ? scene->r.engine :
"CYCLES";
2683 const char *engine = (scene) ? scene->r.engine :
"CYCLES";
2685 if (
STREQ(engine, RE_engine_id_CYCLES)) {
2692 ccamera,
"aperture_fstop", 5.6f);
2695 ccamera,
"aperture_rotation", 0.0);
2697 ccamera,
"aperture_ratio", 1.0f);
2705 if (aperture_size > 0.0f) {
2706 if (
camera.type == CAM_ORTHO) {
2707 camera.dof.aperture_fstop = 1.0f / (2.0f * aperture_size);
2710 camera.dof.aperture_fstop = (
camera.lens * 1e-3f) / (2.0f * aperture_size);
2718 camera.dof.aperture_fstop = 2.8f;
2719 camera.dof.aperture_blades = 0;
2720 camera.dof.aperture_rotation = 0.0f;
2721 camera.dof.aperture_ratio = 1.0f;
2722 camera.dof.flag &= ~CAM_DOF_ENABLED;
2735 bNodeTree *ntree = ma.nodetree;
2736 if (ma.blend_method == MA_BM_ADD) {
2742 else if (ma.blend_method == MA_BM_MULTIPLY) {
2752 bGPdata *gpd = scene.gpd;
2753 if (gpd ==
nullptr) {
2756 for (bGPDlayer &gpl : gpd->layers) {
2757 if (
STREQ(gpl.info,
"RulerData3D")) {
2769 if (me.totface_legacy && !me.faces_num) {
2788 if (ntree->type == NTREE_SHADER) {
2797 if (ntree->type == NTREE_SHADER) {
2810 if (ntree->type == NTREE_SHADER) {
2819 if (ntree->type == NTREE_SHADER) {
2828 if (ntree->type == NTREE_SHADER) {
2837 if (ntree->type == NTREE_SHADER) {
2861 if (ma && ma->gp_style) {
2865 if (ma && ma->gp_style) {
2870 if (ma && ma->gp_style) {
2875 if (ma && ma->gp_style) {
2880 ToolSettings *ts = scene.toolsettings;
2889 Paint *paint = &ts->gp_paint->paint;
2896 if (ntree->type == NTREE_SHADER) {
2905 if (ntree->type == NTREE_SHADER) {
2917 animrig::versioning::fcurves_id_cb(&ob.id, [&](ID * , FCurve *fcu) {
2918 if (fcu->rna_path() !=
"hide") {
2922 fcu->rna_path_set(
"hide_viewport");
2939 for (Brush &brush : bmain->
brushes) {
2940 if (brush.ob_mode & OB_MODE_SCULPT && brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_PAINT) {
2941 brush.tip_roundness = 1.0f;
2943 brush.density = 1.0f;
2944 brush.tip_scale_x = 1.0f;
2949 for (Brush &brush : bmain->
brushes) {
2950 if (brush.sculpt_brush_type == SCULPT_BRUSH_TYPE_POSE &&
2951 brush.disconnected_distance_max == 0.0f)
2954 brush.disconnected_distance_max = 0.1f;
2962 if (ob.
type != OB_EMPTY && ob.instance_collection !=
nullptr) {
2965 RPT_(
"Non-Empty object '%s' cannot duplicate collection '%s' "
2966 "anymore in Blender 2.80 and later, removed instancing"),
2968 ob.instance_collection->id.
name + 2);
2969 ob.instance_collection =
nullptr;
2970 ob.transflag &= ~OB_DUPLICOLLECTION;
2989 for (
Strip &strip : *seqbasep) {
2991 if (strip.seqbase.first() !=
nullptr) {
3004 strip->flag &=
~eStripFlag((1 << 6) | (1 << 18) | (1 << 19) | (1 << 21));
3015 NTREE_DOVERSION_TRANSPARENCY_EMISSION = (1 << 1),
3029 if (!DNA_struct_member_exists(fd->
filesdna,
"GPUDOFSettings",
"float",
"ratio")) {
3031 ca.gpu_dof.ratio = 1.0f;
3036 if (DNA_struct_exists(fd->
filesdna,
"MTexPoly")) {
3050 if (!DNA_struct_member_exists(fd->
filesdna,
"Light",
"float",
"cascade_max_dist")) {
3052 la.cascade_max_dist = 1000.0f;
3053 la.cascade_count = 4;
3054 la.cascade_exponent = 0.8f;
3055 la.cascade_fade = 0.1f;
3059 if (!DNA_struct_member_exists(fd->
filesdna,
"LightProbe",
"float",
"vis_bias")) {
3061 probe.vis_bias = 1.0f;
3062 probe.vis_blur = 0.2f;
3076 if (
node.type_legacy == 194 &&
3077 STREQ(
node.idname,
"ShaderNodeOutputMetallic"))
3084 STREQ(
node.idname,
"ShaderNodeOutputSpecular"))
3090 else if (
node.type_legacy == 196 &&
3091 STREQ(
node.idname,
"ShaderNodeOutputEeveeMaterial"))
3097 else if (
node.type_legacy == 194 &&
3098 STREQ(
node.idname,
"ShaderNodeEeveeMetallic"))
3113 "EEVEE material conversion problem. Error in console");
3115 "You need to connect Principled and EEVEE Specular shader nodes to new material "
3123 "EEVEE material conversion problem. Error in console");
3125 "You need to combine transparency and emission shaders to the converted Principled "
3131 if (!DNA_struct_member_exists(fd->
filesdna,
"bGPdata",
"float",
"line_color[4]")) {
3138 if (!DNA_struct_member_exists(fd->
filesdna,
"bGPdata",
"float",
"pixfactor")) {
3145 if (!DNA_struct_member_exists(
3146 fd->
filesdna,
"GP_Sculpt_Settings",
"CurveMapping",
"cur_falloff"))
3186 if (!DNA_struct_member_exists(
3187 fd->
filesdna,
"View3DOverlay",
"float",
"gpencil_paper_color[3]"))
3204 if (DNA_struct_member_exists(fd->
filesdna,
"SpaceOutliner",
"int",
"filter") ==
false) {
3227 if (!DNA_struct_member_exists(fd->
filesdna,
"LightProbe",
"float",
"intensity")) {
3229 probe.intensity = 1.0f;
3273 if (
ELEM(tex.
type, 10, 14, 15, 16)) {
3284 int win_width = 0, win_height = 0;
3286 win_width = std::max<int>(win_width, vert.vec.x);
3287 win_height = std::max<int>(win_height, vert.vec.y);
3290 for (
ScrArea *area = screen.
areabase.first(), *area_next; area; area = area_next) {
3291 area_next =
static_cast<ScrArea *
>(area->next);
3294 if ((area->v2->vec.y == win_height) && (area->v1->vec.x == 0) &&
3295 (area->v4->vec.x == win_width))
3316 if (la.mode & (1 << 13)) {
3332 for (
ARegion *region = regionbase->first(), *region_next; region; region = region_next)
3334 region_next =
static_cast<ARegion *
>(region->next);
3349 if (!DNA_struct_member_exists(fd->
filesdna,
"Light",
"float",
"spec_fac")) {
3375 if (!DNA_struct_member_exists(fd->
filesdna,
"Scene",
"SceneDisplay",
"display")) {
3382 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneDisplay",
"float",
"shadow_shift")) {
3388 if (!DNA_struct_member_exists(fd->
filesdna,
"ToolSettings",
"char",
"transform_pivot_point")) {
3394 if (!DNA_struct_exists(fd->
filesdna,
"SceneEEVEE")) {
3432#define EEVEE_GET_BOOL(_props, _name, _flag) \
3434 IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
3435 if (_idprop != nullptr) { \
3436 const int _value = IDP_int_get(_idprop); \
3438 scene.eevee.flag |= _flag; \
3441 scene.eevee.flag &= ~_flag; \
3447#define EEVEE_GET_INT(_props, _name) \
3449 IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
3450 if (_idprop != nullptr) { \
3451 scene.eevee._name = IDP_int_get(_idprop); \
3456#define EEVEE_GET_FLOAT(_props, _name) \
3458 IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
3459 if (_idprop != nullptr) { \
3460 scene.eevee._name = IDP_float_get(_idprop); \
3465#define EEVEE_GET_FLOAT_ARRAY(_props, _name, _length) \
3467 IDProperty *_idprop = IDP_GetPropertyFromGroup(_props, #_name); \
3468 if (_idprop != nullptr) { \
3469 const float *_values = static_cast<float *>(IDP_Array(_idprop)); \
3470 for (int _i = 0; _i < _length; _i++) { \
3471 scene.eevee._name[_i] = _values[_i]; \
3546#undef EEVEE_GET_FLOAT_ARRAY
3547#undef EEVEE_GET_FLOAT
3549#undef EEVEE_GET_BOOL
3599 (1 << 5) | (1 << 6);
3643 if (!DNA_struct_member_exists(fd->
filesdna,
"Material",
"float",
"roughness")) {
3645 if (mat.use_nodes) {
3647 mat.roughness = mat.gloss_mir;
3650 mat.roughness = 0.25f;
3654 mat.roughness = 1.0f - mat.gloss_mir;
3656 mat.metallic = mat.ray_mirror;
3674 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"float",
"xray_alpha")) {
3686 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"char",
"matcap[256]")) {
3689 if (default_matcap) {
3702 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"wireframe_threshold")) {
3714 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"float",
"cavity_valley_factor"))
3728 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"xray_alpha_bone")) {
3743 if (!DNA_struct_member_exists(fd->
filesdna,
"Image",
"ListBase",
"renderslot")) {
3746 for (
int i = 0; i < 8; i++) {
3747 RenderSlot *slot = MEM_new<RenderSlot>(
"Image Render Slot Init");
3754 if (!DNA_struct_member_exists(fd->
filesdna,
"SpaceAction",
"char",
"mode_prev")) {
3789 if (sce.
ed !=
nullptr && sce.
ed->
seqbase.first() !=
nullptr) {
3794 if (!DNA_struct_member_exists(
3795 fd->
filesdna,
"View3DOverlay",
"float",
"texture_paint_mode_opacity"))
3803 float alpha = (v3d->
flag2 & V3D_SHOW_MODE_SHADE_OVERRIDE) ? 0.0f : 1.0f;
3813 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"char",
"background_type")) {
3826 if (!DNA_struct_member_exists(
3827 fd->
filesdna,
"RigidBodyWorld",
"RigidBodyWorld_Shared",
"*shared"))
3832 if (rbw ==
nullptr) {
3836 if (rbw->
shared ==
nullptr) {
3837 rbw->
shared = MEM_new<RigidBodyWorld_Shared>(
"RigidBodyWorld_Shared");
3854 if (!DNA_struct_member_exists(fd->
filesdna,
"SoftBody",
"SoftBody_Shared",
"*shared")) {
3857 if (sb ==
nullptr) {
3860 if (sb->
shared ==
nullptr) {
3861 sb->
shared = MEM_new<SoftBody_Shared>(
"SoftBody_Shared");
3873 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"short",
"type")) {
3890 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneDisplay",
"View3DShading",
"shading")) {
3896 if (!DNA_struct_member_exists(fd->
filesdna,
"SpaceView3D",
"float",
"vertex_opacity")) {
3912 if (!DNA_struct_member_exists(fd->
filesdna,
"ToolSettings",
"char",
"annotate_v3d_align")) {
3918 if (!DNA_struct_member_exists(fd->
filesdna,
"bGPDlayer",
"short",
"line_change")) {
3928 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"gpencil_paper_opacity"))
3941 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"gpencil_grid_opacity"))
3956 if (!DNA_struct_member_exists(fd->
filesdna,
"GP_Sculpt_Settings",
"int",
"lock_axis")) {
3965 if (!DNA_struct_member_exists(fd->
filesdna,
"SubsurfModifier",
"short",
"uv_smooth")) {
3981 if (!DNA_struct_member_exists(fd->
filesdna,
"SubsurfModifier",
"short",
"quality")) {
3992 if (!DNA_struct_member_exists(fd->
filesdna,
"MultiresModifier",
"short",
"quality")) {
4009 if (!DNA_struct_member_exists(fd->
filesdna,
"ClothSimSettings",
"short",
"bending_model")) {
4021 if (clmd !=
nullptr) {
4038 if (!DNA_struct_member_exists(fd->
filesdna,
"BrushGpencilSettings",
"float",
"era_strength_f"))
4041 if (
brush.gpencil_settings !=
nullptr) {
4094 if (!DNA_struct_member_exists(fd->
filesdna,
"ShrinkwrapModifierData",
"char",
"shrinkMode")) {
4099 if (smd->
shrinkOpts & MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE) {
4101 smd->
shrinkOpts &= ~MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE;
4108 if (!DNA_struct_member_exists(fd->
filesdna,
"PartDeflect",
"float",
"pdef_cfrict")) {
4124 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"float",
"xray_alpha_wire")) {
4163 if (v3d->
flag2 & V3D_OCCLUDE_WIRE) {
4165 v3d->
flag2 &= ~V3D_OCCLUDE_WIRE;
4187 if (!region_header) {
4194 "header 2.83.1 versioning");
4211 ARegion *region_header =
nullptr;
4213 for (region_header = regionbase->first(); region_header !=
nullptr;
4214 region_header =
static_cast<ARegion *
>(region_header->
next))
4232 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DOverlay",
"float",
"gpencil_fade_layer")) {
4258 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneEEVEE",
"float",
"overscan")) {
4271 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneEEVEE",
"float",
"light_threshold")) {
4277 if (!DNA_struct_member_exists(fd->
filesdna,
"Light",
"float",
"att_dist")) {
4279 la.att_dist = la.clipend_deprecated;
4283 if (!DNA_struct_member_exists(fd->
filesdna,
"Brush",
"char",
"weight_brush_type")) {
4286#define PAINT_BLEND_MIX 0
4287#define PAINT_BLEND_ADD 1
4288#define PAINT_BLEND_SUB 2
4289#define PAINT_BLEND_MUL 3
4290#define PAINT_BLEND_BLUR 4
4291#define PAINT_BLEND_LIGHTEN 5
4292#define PAINT_BLEND_DARKEN 6
4293#define PAINT_BLEND_AVERAGE 7
4294#define PAINT_BLEND_SMEAR 8
4295#define PAINT_BLEND_COLORDODGE 9
4296#define PAINT_BLEND_DIFFERENCE 10
4297#define PAINT_BLEND_SCREEN 11
4298#define PAINT_BLEND_HARDLIGHT 12
4299#define PAINT_BLEND_OVERLAY 13
4300#define PAINT_BLEND_SOFTLIGHT 14
4301#define PAINT_BLEND_EXCLUSION 15
4302#define PAINT_BLEND_LUMINOSITY 16
4303#define PAINT_BLEND_SATURATION 17
4304#define PAINT_BLEND_HUE 18
4305#define PAINT_BLEND_ALPHA_SUB 19
4306#define PAINT_BLEND_ALPHA_ADD 20
4310 const char tool_init =
brush.vertex_brush_type;
4311 bool is_blend =
false;
4315 switch (tool_init) {
4336 if (is_blend ==
false) {
4341 switch (tool_init) {
4394 brush.blend = blend;
4401#undef PAINT_BLEND_MIX
4402#undef PAINT_BLEND_ADD
4403#undef PAINT_BLEND_SUB
4404#undef PAINT_BLEND_MUL
4405#undef PAINT_BLEND_BLUR
4406#undef PAINT_BLEND_LIGHTEN
4407#undef PAINT_BLEND_DARKEN
4408#undef PAINT_BLEND_AVERAGE
4409#undef PAINT_BLEND_SMEAR
4410#undef PAINT_BLEND_COLORDODGE
4411#undef PAINT_BLEND_DIFFERENCE
4412#undef PAINT_BLEND_SCREEN
4413#undef PAINT_BLEND_HARDLIGHT
4414#undef PAINT_BLEND_OVERLAY
4415#undef PAINT_BLEND_SOFTLIGHT
4416#undef PAINT_BLEND_EXCLUSION
4417#undef PAINT_BLEND_LUMINOSITY
4418#undef PAINT_BLEND_SATURATION
4419#undef PAINT_BLEND_HUE
4420#undef PAINT_BLEND_ALPHA_SUB
4421#undef PAINT_BLEND_ALPHA_ADD
4433 if (!navigation_region) {
4436 ListBaseT<ARegion> *regionbase = (&slink == area.
spacedata.first_) ?
4455 if (!DNA_struct_member_exists(
4456 fd->
filesdna,
"View3DShading",
"float",
"curvature_ridge_factor"))
4479 if (!DNA_struct_member_exists(fd->
filesdna,
"bGPDlayer",
"int",
"gstep")) {
4489 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"char",
"lookdev_light[256]")) {
4503 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneDisplay",
"float",
"shadow_focus")) {
4506 std::swap(dir[2], dir[1]);
4515 ca.drawsize *= 2.0f;
4519 if (!DNA_struct_member_exists(
4520 fd->
filesdna,
"GP_Sculpt_Settings",
"CurveMapping",
"cur_primitive"))
4537 if (DNA_struct_member_exists(fd->
filesdna,
"Object",
"char",
"empty_image_visibility_flag")) {
4634 ob.
shapeflag &= ~OB_SHAPE_FLAG_UNUSED_1;
4649 if (!DNA_struct_member_exists(
4650 fd->
filesdna,
"ToolSettings",
"char",
"snap_transform_mode_flag"))
4664 if (v3d->
flag2 & V3D_BACKFACE_CULLING) {
4665 v3d->
flag2 &= ~V3D_BACKFACE_CULLING;
4675 if (!DNA_struct_exists(fd->
filesdna,
"TransformOrientationSlot")) {
4684 if (!DNA_struct_member_exists(fd->
filesdna,
"GP_Sculpt_Settings",
"float",
"isect_threshold"))
4694 ca.gpu_dof.ratio = std::max(ca.gpu_dof.ratio, 0.01f);
4703 if (!execute_region) {
4731 if (!DNA_struct_member_exists(fd->
filesdna,
"Material",
"float",
"a")) {
4748 if (ts->
sculpt !=
nullptr) {
4756 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"char",
"wire_color_type")) {
4769 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DCursor",
"short",
"rotation_mode")) {
4793 if (
ELEM(ob.
partype, PARCURVE_V, PARKEY_V, PAR_DEPRECATED_V)) {
4799 enum { OB_WAVE = 21, OB_LIFE = 23, OB_SECTOR = 24 };
4800 if (
ELEM(
int(ob.
type), OB_WAVE, OB_LIFE, OB_SECTOR)) {
4843 while (!workspace.
tools.is_empty()) {
4860 if (!DNA_struct_member_exists(fd->
filesdna,
"TriangulateModifierData",
"int",
"min_vertices"))
4876 if (
STREQ(
node.idname,
"ShaderNodeOutputLamp")) {
4891 if (!mat.use_nodes || !mat.nodetree || mat.blend_method ==
MA_BM_SOLID) {
4912 bool is_first_subdiv =
true;
4916 if (is_first_subdiv) {
4922 is_first_subdiv =
false;
4926 if (is_first_subdiv) {
4932 is_first_subdiv =
false;
4994 if (!DNA_struct_member_exists(fd->
filesdna,
"BrushGpencilSettings",
"float",
"hardness")) {
4996 if (
brush.gpencil_settings !=
nullptr) {
5005 if (!DNA_struct_member_exists(fd->
filesdna,
"bGPDstroke",
"float",
"hardness")) {
5053 if (region !=
nullptr) {
5063 if (!DNA_struct_member_exists(fd->
filesdna,
"bSplineIKConstraint",
"short",
"yScaleMode")) {
5070 if ((
data->flag & CONSTRAINT_SPLINEIK_SCALE_LIMITED) == 0) {
5080 if (!DNA_struct_member_exists(
5081 fd->
filesdna,
"View3DOverlay",
"float",
"sculpt_mode_mask_opacity"))
5094 if (!DNA_struct_member_exists(fd->
filesdna,
"SceneDisplay",
"char",
"render_aa")) {
5102 if (!DNA_struct_member_exists(fd->
filesdna,
"bPoseChannel",
"float",
"scale_out_z")) {
5132 if (sce.
ed !=
nullptr) {
5140 if (!DNA_struct_member_exists(fd->
filesdna,
"bSizeLikeConstraint",
"float",
"power")) {
5168 if (region !=
nullptr) {
5198 cscene,
"film_transparent",
false);
5211 if (!DNA_struct_member_exists(fd->
filesdna,
"Light",
"float",
"sun_angle")) {
5213 light.sun_angle = 2.0f *
atanf(light.area_size);
5221 enum { IMA_IGNORE_ALPHA = (1 << 12) };
5222 if (
int(
image.flag) & IMA_IGNORE_ALPHA) {
5248 if (
STREQ(view_settings->
look,
"Filmic - Base Contrast")) {
5256 if (scene.
ed !=
nullptr) {
5277 case FFM_PRESET_ULTRAFAST:
5278 case FFM_PRESET_SUPERFAST:
5281 case FFM_PRESET_VERYFAST:
5282 case FFM_PRESET_FASTER:
5283 case FFM_PRESET_FAST:
5284 case FFM_PRESET_MEDIUM:
5287 case FFM_PRESET_SLOW:
5288 case FFM_PRESET_SLOWER:
5289 case FFM_PRESET_VERYSLOW:
5340 if (
mesh.remesh_voxel_size == 0.0f) {
5341 mesh.remesh_voxel_size = 0.1f;
5395 if (studio_light !=
nullptr) {
5426 if (region_toolprops &&
5446 if (!DNA_struct_member_exists(fd->
filesdna,
"Bone",
"char",
"inherit_scale_mode")) {
5453 if (!DNA_struct_member_exists(fd->
filesdna,
"bRotateLikeConstraint",
"char",
"mix_mode")) {
5465 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"float",
"studiolight_intensity"))
5508 constexpr char SCE_SNAP_TO_NODE_X = (1 << 1);
5514 if (!DNA_struct_member_exists(
5515 fd->
filesdna,
"LayerCollection",
"short",
"local_collections_bits"))
5535 View3D *v3d_other =
reinterpret_cast<View3D *
>(&sl_other);
5563 "versioning file tools region");
5589 if (!DNA_struct_member_exists(fd->
filesdna,
"ToolSettings",
"CurveProfile",
"custom_profile"))
5600 if (!DNA_struct_member_exists(fd->
filesdna,
"BevelModifier",
"CurveProfile",
"custom_profile"))
5615 if (!DNA_struct_member_exists(fd->
filesdna,
"Brush",
"float",
"dash_ratio")) {
5623 if (!DNA_struct_member_exists(fd->
filesdna,
"Brush",
"float",
"pose_smooth_iterations")) {
5650 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"int",
"render_pass")) {
5704 char *src = view_settings->
look + strlen(
"Filmic - ");
5705 memmove(view_settings->
look, src, strlen(src) + 1);
5708 char *src = view_settings->
look + strlen(
"Standard - ");
5709 memmove(view_settings->
look, src, strlen(src) + 1);
5732 if (!DNA_struct_member_exists(fd->
filesdna,
"Image",
"ListBase",
"tiles")) {
5735 tile->tile_number = 1001;
5741 if (!DNA_struct_member_exists(fd->
filesdna,
"SpaceImage",
"int",
"tile_grid_shape[2]")) {
5775 if (!DNA_struct_member_exists(fd->
filesdna,
"Brush",
"float",
"tip_roundness")) {
5795 if (!DNA_struct_member_exists(fd->
filesdna,
"UVWarpModifierData",
"float",
"scale[2]")) {
5807 if (!DNA_struct_member_exists(fd->
filesdna,
"View3DShading",
"float",
"studiolight_blur")) {
5823 if (!DNA_struct_member_exists(
5824 fd->
filesdna,
"View3DOverlay",
"float",
"gpencil_vertex_paint_opacity"))
5841 if (!DNA_struct_member_exists(fd->
filesdna,
"ArrayGpencilModifierData",
"int",
"seed")) {
5845 if (
brush.gpencil_settings !=
nullptr) {
5847 brush.gpencil_settings->brush_type);
5849 brush.gpencil_settings->brush_type);
5851 brush.gpencil_settings->brush_type);
5858 if (gp_style ==
nullptr) {
5944 if ((mmd->
offset[0] != 0.0f) || (mmd->
offset[1] != 0.0f) || (mmd->
offset[2] != 0.0f))
5948 if ((mmd->
shift[0] != 0.0f) || (mmd->
shift[1] != 0.0f) || (mmd->
shift[2] != 0.0f)) {
5951 if (mmd->
object !=
nullptr) {
5958 float factor = mmd->
factor / 25.0f;
6017 if (!DNA_struct_member_exists(
6018 fd->
filesdna,
"ThickGpencilModifierData",
"float",
"thickness_fac"))
6032 const short simple = (1 << 0);
6034 if (mmd->
flag & simple) {
6085 if (!DNA_struct_member_exists(
6086 fd->
filesdna,
"View3DOverlay",
"float",
"sculpt_mode_face_sets_opacity"))
6110 if (!DNA_struct_member_exists(
6111 fd->
filesdna,
"Brush",
"int",
"automasking_boundary_edges_propagation_steps"))
6119 if (!DNA_struct_member_exists(fd->
filesdna,
"CorrectiveSmoothModifierData",
"float",
"scale"))
6135 const int *face_sets =
static_cast<const int *
>(
6145 if (!DNA_struct_member_exists(fd->
filesdna,
"OceanModifierData",
"float",
"fetch_jonswap")) {
6156 if (!DNA_struct_exists(fd->
filesdna,
"XrSessionSettings")) {
6158 const View3D v3d_default = {};
6160 wm.xr.session_settings.shading = v3d_default.
shading;
6163 wm.xr.session_settings.clip_start = v3d_default.
clip_start;
6164 wm.xr.session_settings.clip_end = v3d_default.
clip_end;
6171 if (!DNA_struct_member_exists(fd->
filesdna,
"SurfaceDeformModifierData",
"float",
"strength"))
6198 if (!DNA_struct_member_exists(fd->
filesdna,
"RemeshModifierData",
"float",
"voxel_size")) {
6213 if (!DNA_struct_member_exists(
6214 fd->
filesdna,
"SolidifyModifierData",
"float",
"merge_tolerance"))
6231 if (rbc !=
nullptr) {
6233 INVALID_RBC_TYPE_SLIDER = 2,
6234 INVALID_RBC_TYPE_6DOF_SPRING = 4,
6235 INVALID_RBC_TYPE_MOTOR = 7,
6237 switch (
int(rbc->
type)) {
6238 case INVALID_RBC_TYPE_SLIDER:
6241 case INVALID_RBC_TYPE_6DOF_SPRING:
6244 case INVALID_RBC_TYPE_MOTOR:
6258 if (fmd->
domain !=
nullptr) {
6285 if (
brush.gpencil_settings) {
6286 brush.rgb[0] = 0.498f;
6287 brush.rgb[1] = 1.0f;
6288 brush.rgb[2] = 0.498f;
6296 if (!DNA_struct_member_exists(fd->
filesdna,
"PartDeflect",
"float",
"f_wind_factor")) {
Versioning of old animation data. Most animation versioning code lives in the versioning_xxx....
CustomData interface, see also DNA_customdata_types.h.
#define DRIVER_TARGETS_LOOPER_BEGIN(dvar)
#define DRIVER_TARGETS_LOOPER_END
#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 SH_NODE_TEX_NOISE
#define SH_NODE_TEX_IMAGE
#define SH_NODE_BSDF_PRINCIPLED
#define SH_NODE_ADD_SHADER
#define SH_NODE_VECTOR_MATH
#define SH_NODE_TEX_ENVIRONMENT
#define SH_NODE_CURVE_VEC
#define CMP_NODE_HUECORRECT
#define SH_NODE_BSDF_TRANSPARENT
#define SH_NODE_AMBIENT_OCCLUSION
#define SH_NODE_SHADERTORGB
#define SH_NODE_OUTPUT_MATERIAL
#define CMP_NODE_CURVE_RGB
#define SH_NODE_TEX_VORONOI
#define SH_NODE_BSDF_GLOSSY
#define SH_NODE_TEX_MUSGRAVE_DEPRECATED
#define SH_NODE_CURVE_RGB
#define SH_NODE_EEVEE_SPECULAR
#define TEX_NODE_CURVE_TIME
#define SH_NODE_BSDF_GLASS
#define SH_NODE_DISPLACEMENT
#define SH_NODE_BSDF_GLOSSY_LEGACY
#define SH_NODE_BSDF_REFRACTION
#define CMP_NODE_CURVE_VEC_DEPRECATED
#define TEX_NODE_CURVE_RGB
API for Blender-side Rigid Body stuff.
#define SNPRINTF_UTF8(dst, format,...)
#define STRNCPY_UTF8(dst, src)
external readfile function prototypes.
#define BLO_read_assert_message(_check_expr, _ret_value, _bh, _bmain, _message)
#define ID_IS_LINKED(_id)
Object groups, one object can be in many groups at once.
blenloader genfile private function prototypes
#define GP_DEFAULT_PIX_FACTOR
#define GP_DEFAULT_GRID_LINES
Object is a sort of wrapper for general info.
Types and defines for representing Rigid Body entities.
#define USER_UNIT_ADAPTIVE
#define WM_OUTLINER_SYNC_SELECT_FROM_ALL
Read Blender memory allocation and freeing.
#define ARRAY_SET_ITEMS(...)
#define UNUSED_VARS_NDEBUG(...)
#define SET_FLAG_FROM_TEST(value, test, flag)
#define BLI_assert_msg(a, msg)
void camera(KernelGlobals &kg, const ShadingData &sd, float3 &outview, float &outdepth, float &outdist)
const ccl_global KernelWorkTile * tile
ccl_device_inline int4 srl(const int4 a, const int i)
void fcurves_id_cb(ID *id, const FunctionRef< void(ID *, FCurve *)> func)
ENUM_OPERATORS(Layer::Flags)
void node_remove_link(bNodeTree *ntree, bNodeLink &link)
bNode * node_add_static_node(const bContext *C, bNodeTree &ntree, int type)
bNodeLink & node_add_link(bNodeTree &ntree, bNode &fromnode, bNodeSocket &fromsock, bNode &tonode, bNodeSocket &tosock)
bNodeSocket * node_find_socket(bNode &node, eNodeSocketInOut in_out, UString identifier)
bNodeTree * node_tree_from_id(ID *id)
void foreach_strip(ListBaseT< Strip > *seqbase, ForEachFunc callback, void *user_data)
void strip_unique_name_set(Scene *scene, ListBaseT< Strip > *seqbasep, Strip *strip)
const StripModifierTypeInfo * modifier_type_info_get(eStripModifierType type)
static void do_version_layers_to_collections(Main *bmain, Scene *scene)
bool version_node_ensure_storage_or_invalidate(bNode &node)
static bool strip_update_flags_cb(Strip *strip, void *)
CurveMapping * BKE_curvemapping_add(int tot, float minx, float miny, float maxx, float maxy)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
bool version_node_socket_is_used(bNodeSocket *sock)
@ SO_FILTER_OB_STATE_SELECTABLE
static void ambient_occlusion_node_relink(bNodeTree *ntree)
@ SHD_WAVE_BANDS_DIRECTION_DIAGONAL
@ eGpencilModifierType_Array
@ eGpencilModifierType_Hook
@ eGpencilModifierType_Tint
@ eGpencilModifierType_Smooth
@ eGpencilModifierType_Noise
@ eGpencilModifierType_Opacity
@ eGpencilModifierType_Color
@ eGpencilModifierType_Multiply
@ eGpencilModifierType_Thick
@ eGpencilModifierType_Subdiv
static void do_versions_material_convert_legacy_blend_mode(bNodeTree *ntree, char blend_method)
@ STUDIOLIGHT_TYPE_MATCAP
struct bNode * ntreeShaderOutputNode(struct bNodeTree *ntree, int target)
void BKE_workspace_active_set(WorkSpaceInstanceHook *hook, WorkSpace *workspace) SETTER_ATTRS
char * STRNCPY(char(&dst)[N], const char *src)
static void do_versions_seq_set_cache_defaults(Editing *ed)
static void do_version_constraints_copy_scale_power(ListBaseT< bConstraint > *lb)
static void displacement_node_insert(bNodeTree *ntree)
static void do_versions_fix_annotations(bGPdata *gpd)
@ SEQ_TIMELINE_SHOW_FCURVES
MINLINE void copy_v2_fl(float r[2], float f)
void BKE_screen_area_free(ScrArea *area)
static void displacement_principled_nodes(bNode *node)
static void mapping_node_order_flip(bNode *node)
@ ADS_FLAG_SUMMARY_COLLAPSED
MINLINE void copy_v3_v3(float r[3], const float a[3])
static void update_mapping_node_inputs_and_properties(bNodeTree *ntree)
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static char * replace_bbone_scale_rnapath(const char *old_path)
bool CustomData_free_layers(CustomData *data, eCustomDataType type)
@ CONSTRAINT_TYPE_SAMEVOL
@ CONSTRAINT_TYPE_SPLINEIK
@ CONSTRAINT_TYPE_ROTLIKE
@ CONSTRAINT_TYPE_TRANSFORM_CACHE
@ CONSTRAINT_TYPE_SIZELIKE
int bool bool BLI_str_endswith(const char *__restrict str, const char *__restrict end) ATTR_NONNULL(1
bool CustomData_has_layer(const CustomData *data, eCustomDataType type)
void BKE_screen_view3d_shading_init(View3DShading *shading)
void BKE_screen_remove_unused_scredges(bScreen *screen)
void BKE_screen_remove_unused_scrverts(bScreen *screen)
MINLINE void copy_v2_v2(float r[2], const float a[2])
float version_cycles_property_float(IDProperty *idprop, const char *name, float default_value)
static void do_version_bones_inherit_scale(ListBaseT< Bone > *lb)
char * BLI_strdupcat(const char *__restrict str1, const char *__restrict str2) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void BKE_rigidbody_world_init_runtime(struct RigidBodyWorld *rbw)
void version_update_node_input(bNodeTree *ntree, FunctionRef< bool(bNode *)> check_node, const char *socket_identifier, FunctionRef< void(bNode *, bNodeSocket *)> update_input, FunctionRef< void(bNode *, bNodeSocket *, bNode *, bNodeSocket *)> update_input_link)
WorkSpaceLayout * BKE_workspace_layout_add(Main *bmain, WorkSpace &workspace, bScreen &screen, const char *name)
void srgb_to_linearrgb_v3_v3(float linear[3], const float srgb[3])
@ OB_FLAG_ACTIVE_CLIPBOARD
@ OB_FLAG_USE_SIMULATION_CACHE
@ SUBSURF_UV_SMOOTH_PRESERVE_CORNERS
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_area_region_free(SpaceType *st, ARegion *region)
static void do_versions_remove_regions_by_type(ListBaseT< ARegion > *regionbase, int regiontype)
@ eModifierType_Shrinkwrap
@ eModifierType_ParticleSystem
@ eModifierType_WeightVGEdit
@ eModifierType_DataTransfer
@ eModifierType_Triangulate
@ eModifierType_CorrectiveSmooth
@ eModifierType_SurfaceDeform
static void do_version_curvemapping_flag_extend_extrapolate(CurveMapping *cumap)
@ V3D_AROUND_CENTER_MEDIAN
void BKE_color_managed_view_settings_init(ColorManagedViewSettings *view_settings, const ColorManagedDisplaySettings *display_settings, const char *view_transform)
void BKE_annotation_stroke_geometry_update(struct bGPdata *gpd, struct bGPDstroke *gps)
void BKE_animdata_main_cb(struct Main *bmain, FunctionRef< void(ID *, AnimData *)> func)
char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void do_version_curvemapping_walker(Main *bmain, void(*callback)(CurveMapping *cumap))
@ V3D_OFSDRAW_SHOW_ANNOTATION
@ V3D_OFSDRAW_SHOW_GRIDFLOOR
static void update_musgrave_node_color_output(bNodeTree *ntree)
MINLINE void copy_v4_fl(float r[4], float f)
static void light_emission_unify(Light *light, const char *engine)
void BKE_color_managed_display_settings_init(ColorManagedDisplaySettings *settings)
ARegion * do_versions_add_region(int regiontype, const char *)
MINLINE void srgb_to_linearrgb_v4(float linear[4], const float srgb[4])
const char * RE_engine_id_CYCLES
@ BRUSH_USE_CONNECTED_ONLY
static void update_voronoi_node_coloring(bNodeTree *ntree)
void BKE_mesh_tessface_clear(Mesh *mesh)
static void update_musgrave_node_dimensions(bNodeTree *ntree)
bScreen * BKE_workspace_active_screen_get(const WorkSpaceInstanceHook *hook) GETTER_ATTRS
static void do_version_workspaces_create_from_screens(Main *bmain)
@ NTREE_DOVERSION_TRANSPARENCY_EMISSION
@ NTREE_DOVERSION_NEED_OUTPUT
@ NTREE_DOVERSION_NO_ERROR
void BKE_main_id_repair_duplicate_names_listbase(Main *bmain, ListBaseT< ID > *lb)
int BKE_unit_base_of_type_get(int system, int type)
@ ARM_DRAW_RELATION_FROM_HEAD
float * version_cycles_node_socket_float_value(bNodeSocket *socket)
static bScreen * screen_parent_find(const bScreen *screen)
float * version_cycles_node_socket_vector_value(bNodeSocket *socket)
void id_fake_user_set(ID *id)
void BKE_mesh_do_versions_convert_mfaces_to_mpolys(Mesh *mesh)
@ V3D_SHADING_WORLD_ORIENTATION
@ V3D_SHADING_BACKFACE_CULLING
@ V3D_SHADING_XRAY_WIREFRAME
@ V3D_SHADING_SCENE_LIGHTS_RENDER
@ V3D_SHADING_OBJECT_OUTLINE
@ V3D_SHADING_SPECULAR_HIGHLIGHT
@ V3D_SHADING_SCENE_WORLD_RENDER
static void light_emission_node_to_energy(Light *light, float *energy, float color[3])
void MEM_delete_void(void *vmemh)
const char * RE_engine_id_BLENDER_WORKBENCH
@ GP_MATERIAL_STROKE_PATTERN
@ GP_MATERIAL_STROKE_SHOW
@ GP_MATERIAL_STROKE_TEX_MIX
ARegion * BKE_spacedata_find_region_type(const SpaceLink *slink, const ScrArea *area, int region_type) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
ViewLayer * BKE_view_layer_default_view(const Scene *scene)
MINLINE void mul_v3_fl(float r[3], float f)
static void update_wave_node_directions_and_offset(bNodeTree *ntree)
@ SCULPT_BRUSH_TYPE_CLOTH
@ SCULPT_BRUSH_TYPE_CLAY_STRIPS
const char * RE_engine_id_BLENDER_EEVEE
int version_cycles_property_int(IDProperty *idprop, const char *name, int default_value)
static void update_math_node_single_operand_operators(bNodeTree *ntree)
void version_socket_update_is_used(bNodeTree *ntree)
struct StudioLight * BKE_studiolight_find(const char *name, int flag)
bool BKE_collection_object_add_notest(Main *bmain, Collection *collection, Object *ob)
void do_versions_after_linking_280(FileData *fd, Main *bmain)
static void update_vector_math_node_normalize_operator(bNodeTree *ntree)
@ SCE_EEVEE_TAA_REPROJECTION
@ SCE_EEVEE_MOTION_BLUR_ENABLED_DEPRECATED
void version_node_socket_identifier_set(bNodeSocket &socket, const StringRefNull identifier)
void BKE_curvemapping_init(CurveMapping *cumap)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
static void do_version_bones_split_bbone_scale(ListBaseT< Bone > *lb)
@ GPAINT_BRUSH_TYPE_ERASE
float * version_cycles_node_socket_rgba_value(bNodeSocket *socket)
@ eSubsurfModifierFlag_UseCrease
@ eSubsurfModifierFlag_SubsurfUv_DEPRECATED
ID * do_versions_rename_id(Main *bmain, const short id_type, const char *name_src, const char *name_dst)
@ MOD_SHRINKWRAP_ABOVE_SURFACE
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void do_version_constraints_maintain_volume_mode_uniform(ListBaseT< bConstraint > *lb)
const char * IMB_colormanagement_role_colorspace_name_get(int role)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void BLI_insertlinkafter(ListBase *listbase, void *vprevlink, void *vnewlink) ATTR_NONNULL(1)
WorkSpace * BKE_workspace_add(Main *bmain, const char *name)
@ R_COLOR_MANAGEMENT_UNUSED_1
@ LAYER_COLLECTION_INDIRECT_ONLY
@ LAYER_COLLECTION_EXCLUDE
@ LAYER_COLLECTION_HOLDOUT
void BKE_workspace_active_layout_set(WorkSpaceInstanceHook *hook, int winid, WorkSpace *workspace, WorkSpaceLayout *layout) SETTER_ATTRS
Activate a layout.
BLI_mempool * BLI_mempool_create(unsigned int esize, unsigned int elem_num, unsigned int pchunk, unsigned int flag) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL
void BKE_curvemap_reset(CurveMap *cuma, const rctf *clipr, int preset, CurveMapSlopeType slope)
static void update_voronoi_node_dimensions(bNodeTree *ntree)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
@ CONSTRAINT_SPLINEIK_YS_FIT_CURVE
@ SHD_WAVE_RINGS_DIRECTION_SPHERICAL
void quat_to_eulO(float e[3], short order, const float q[4])
static void do_versions_remove_region(ListBaseT< ARegion > *regionbase, ARegion *region)
void BKE_rigidbody_objects_collection_validate(struct Main *bmain, struct Scene *scene, struct RigidBodyWorld *rbw)
@ FILE_PARAMS_FLAG_UNUSED_3
@ FILE_PARAMS_FLAG_UNUSED_1
@ FILE_PARAMS_FLAG_UNUSED_2
@ V3D_GIZMO_SHOW_CAMERA_DOF_DIST
@ V3D_GIZMO_SHOW_CAMERA_LENS
FCurve * BKE_fcurve_copy(const FCurve *fcu)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_freestyle_config_free(struct FreestyleConfig *config, bool do_id_user)
static void do_versions_area_ensure_tool_region(Main *bmain, const short space_type, const short region_flag)
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
bool BKE_view_layer_synced_ensure(const Main &bmain, const Scene *scene, ViewLayer *view_layer)
LayerCollection * BKE_layer_collection_first_from_scene_collection(const ViewLayer *view_layer, const Collection *collection)
static void do_version_constraints_copy_rotation_mix_mode(ListBaseT< bConstraint > *lb)
static void do_version_collection_propagate_lib_to_children(Collection *collection)
@ V3D_GIZMO_SHOW_LIGHT_LOOK_AT
@ V3D_GIZMO_SHOW_LIGHT_SIZE
static void update_vector_math_node_operators_enum_mapping(bNodeTree *ntree)
@ LS_MODIFIER_DISTANCE_FROM_CAMERA
@ LS_MODIFIER_DISTANCE_FROM_OBJECT
@ LS_MODIFIER_ALONG_STROKE
@ LS_MODIFIER_CURVATURE_3D
@ LS_MODIFIER_CREASE_ANGLE
static void image_node_colorspace(bNode *node)
SpaceType * BKE_spacetype_from_id(int spaceid)
static void update_vector_math_node_dot_product_operator(bNodeTree *ntree)
const void * CustomData_get_layer(const CustomData *data, eCustomDataType type)
static void update_mapping_node_fcurve_rna_path_callback(FCurve *fcurve, const char *nodePath, const bNode *minimumNode, const bNode *maximumNode)
void BLO_reportf_wrap(BlendFileReadReport *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
@ V3D_GIZMO_SHOW_ARMATURE_BBONE
@ V3D_GIZMO_SHOW_ARMATURE_ROLL
ARegion * BKE_area_region_new()
@ V3D_GIZMO_SHOW_EMPTY_FORCE_FIELD
@ V3D_GIZMO_SHOW_EMPTY_IMAGE
@ V3D_SHADING_SINGLE_COLOR
@ V3D_SHADING_MATERIAL_COLOR
@ V3D_SHADING_TEXTURE_COLOR
@ ME_REMESH_REPROJECT_ATTRIBUTES
@ ME_FLAG_UV_SELECT_SYNC_VALID
void BKE_curvemapping_changed_all(CurveMapping *cumap)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
@ eShaderFxColorizeMode_GrayScale
@ eShaderFxColorizeMode_Sepia
@ OB_TRANSFORM_ADJUST_ROOT_PARENT_FOR_VIEW_LOCK
static void update_voronoi_node_crackle(bNodeTree *ntree)
bool version_cycles_property_boolean(IDProperty *idprop, const char *name, bool default_value)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
WorkSpaceInstanceHook * BKE_workspace_instance_hook_create(const Main *bmain, int winid)
static ARegion * do_versions_find_region_or_null(ListBaseT< ARegion > *regionbase, int regiontype)
struct StudioLight * BKE_studiolight_find_default(int flag)
@ CLOTH_SIMSETTINGS_FLAG_SCALING
@ CLOTH_SIMSETTINGS_FLAG_GOAL
@ CLOTH_SIMSETTINGS_FLAG_SEW
static void update_noise_node_dimensions(bNodeTree *ntree)
bool BKE_collection_object_remove(Main *bmain, Collection *collection, Object *ob, bool free_us)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
@ BONE_INHERIT_SCALE_NONE_LEGACY
static void square_roughness_node_insert(bNodeTree *ntree)
@ COLLECTION_HIDE_VIEWPORT
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
MINLINE void copy_v3_fl(float r[3], float f)
static void do_versions_seq_unique_name_all_strips(Scene *sce, ListBaseT< Strip > *seqbasep)
@ SHD_SUBSURFACE_RANDOM_WALK_SKIN
int BKE_keyblock_curve_element_count(const ListBaseT< Nurb > *nurb)
void IDP_FreeProperty(IDProperty *prop)
static void update_vector_math_node_add_and_subtract_operators(bNodeTree *ntree)
static void do_version_workspaces_after_lib_link(Main *bmain)
After lib-link versioning for new workspace design.
void CustomData_update_typemap(CustomData *data)
MINLINE float max_ff(float a, float b)
Collection * BKE_collection_master_add(Scene *scene)
int bool BLI_str_startswith(const char *__restrict str, const char *__restrict start) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
void eulO_to_quat(float q[4], const float e[3], short order)
static void do_version_area_change_space_to_space_action(ScrArea *area, const Scene *scene)
static void update_noise_and_wave_distortion(bNodeTree *ntree)
struct CurveProfile * BKE_curveprofile_add(eCurveProfilePresets preset)
void * BLI_mempool_calloc(BLI_mempool *pool) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_RETURNS_NONNULL ATTR_NONNULL(1)
static void update_vector_math_node_cross_product_operator(bNodeTree *ntree)
IDProperty * version_cycles_properties_from_ID(ID *id)
@ eMultiresModifierFlag_UseCrease
@ eMultiresModifierFlag_PlainUv_DEPRECATED
@ OB_EMPTY_IMAGE_HIDE_BACK
@ OB_EMPTY_IMAGE_HIDE_ORTHOGRAPHIC
@ OB_EMPTY_IMAGE_HIDE_PERSPECTIVE
@ SCE_SNAP_TRANSFORM_MODE_TRANSLATE
Base * BKE_view_layer_base_find(ViewLayer *view_layer, Object *ob)
void BKE_rigidbody_constraints_collection_validate(struct Scene *scene, struct RigidBodyWorld *rbw)
struct PointCache * BKE_ptcache_add(ListBaseT< PointCache > *ptcaches)
@ SEQ_CACHE_STORE_FINAL_OUT
@ V3D_OVERLAY_EDIT_BWEIGHTS
@ V3D_OVERLAY_EDIT_CREASES
@ V3D_OVERLAY_EDIT_FREESTYLE_EDGE
@ V3D_OVERLAY_EDIT_RETOPOLOGY
@ V3D_OVERLAY_EDIT_FREESTYLE_FACE
@ NODE_VECTOR_MATH_MAXIMUM
@ NODE_VECTOR_MATH_MINIMUM
@ NODE_VECTOR_MATH_CROSS_PRODUCT
@ NODE_VECTOR_MATH_NORMALIZE
@ NODE_VECTOR_MATH_SUBTRACT
@ NODE_VECTOR_MATH_DOT_PRODUCT
@ NODE_VECTOR_MATH_LENGTH
@ NODE_VECTOR_MATH_ABSOLUTE
ViewLayer * BKE_view_layer_add(const Main *bmain, Scene *scene, const char *name, ViewLayer *view_layer_source, int type)
MINLINE void copy_v4_v4(float r[4], const float a[4])
@ SACTION_SHOW_INTERPOLATION
static void update_voronoi_node_square_distance(bNodeTree *ntree)
@ RGN_FLAG_HIDDEN_BY_USER
static void do_version_bbone_scale_fcurve_fix(ListBaseT< FCurve > *curves, FCurve *fcu)
@ SCE_DISPLAY_AA_SAMPLES_8
@ UNIFIED_PAINT_FLAG_UNUSED_0
@ UNIFIED_PAINT_FLAG_UNUSED_1
bool BKE_paint_ensure_from_paintmode(Scene *sce, PaintMode mode)
void BKE_workspace_tool_remove(WorkSpace *workspace, bToolRef *tref) ATTR_NONNULL(1
static ARegion * do_versions_find_region(ListBaseT< ARegion > *regionbase, int regiontype)
@ CLOTH_COLLSETTINGS_FLAG_ENABLED
@ CLOTH_COLLSETTINGS_FLAG_SELF
static void update_voronoi_node_fac_output(bNodeTree *ntree)
@ eSeqModifierType_HueCorrect
@ eSeqModifierType_Curves
MINLINE int min_ii(int a, int b)
void blo_do_versions_280(FileData *fd, Library *lib, Main *bmain)
static void update_vector_math_node_average_operator(bNodeTree *ntree)
static void vector_curve_node_remap(bNode *node)
static void do_versions_local_collection_bits_set(LayerCollection *layer_collection)
static void update_voronoi_node_f3_and_f4(bNodeTree *ntree)
static void do_versions_seq_alloc_transform_and_crop(ListBaseT< Strip > *seqbase)
ListBaseT< Base > * BKE_view_layer_object_bases_get(ViewLayer *view_layer)
MINLINE bool is_zero_v3(const float v[3]) ATTR_WARN_UNUSED_RESULT
WorkSpaceLayout * BKE_workspace_layout_find(const WorkSpace *workspace, const bScreen *screen) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
void BKE_screen_remove_double_scredges(bScreen *screen)
@ XR_SESSION_USE_POSITION_TRACKING
Main * BKE_blender_globals_main_swap(Main *new_gmain)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
ListBaseT< ID > * which_libbase(Main *bmain, short type)
@ CUMA_EXTEND_EXTRAPOLATE
@ GP_MATERIAL_FILL_STYLE_CHECKER
@ GP_MATERIAL_FILL_STYLE_TEXTURE
@ GP_MATERIAL_FILL_STYLE_SOLID
@ GP_MATERIAL_FILL_STYLE_GRADIENT
@ VPAINT_BRUSH_TYPE_SMEAR
@ VPAINT_BRUSH_TYPE_AVERAGE
Collection * BKE_collection_add(Main *bmain, Collection *collection_parent, const char *name_custom)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
bke::ARegionRuntime * runtime
eRegion_Alignment alignment
ListBaseT< FCurve > drivers
ImageFormatData im_format
DNA_DEPRECATED unsigned int lay
struct CurveProfile * custom_profile
DNA_DEPRECATED int brush_type
DNA_DEPRECATED int automasking_boundary_edges_propagation_steps
float elastic_deform_volume_preservation
eBrushSculptType sculpt_brush_type
float normal_radius_factor
int pose_smooth_iterations
ListBaseT< DriverVar > variables
CLOTH_COLLISIONSETTINGS_FLAGS flags
struct ClothSimSettings * sim_parms
struct ClothCollSettings * coll_parms
DNA_DEPRECATED float Cdis
DNA_DEPRECATED float structural
float max_internal_tension
DNA_DEPRECATED float max_struct
CLOTH_SIMSETTINGS_FLAGS flags
CLOTH_BENDING_MODEL bending_model
float max_internal_compression
float internal_compression
float internal_spring_max_diversion
struct Collection * collection
DNA_DEPRECATED unsigned int layer
ListBaseT< CollectionChild > children
ListBaseT< CollectionObject > gobject
struct CurveMapping * curve_intensity
struct CurveMapping * curve_mapping
ColorizeShaderFxModes mode
DNA_DEPRECATED short flag
struct CurveMapping curve_mapping
ListBaseT< Strip > seqbase
eFFMpegPreset ffmpeg_preset
BlendFileReadReport * reports
std::unique_ptr< SDNA > filesdna
eFileSel_Params_Flag flag
eFileDetails details_flags
struct FluidDomainSettings * domain
ListBaseT< LineStyleModifier > alpha_modifiers
ListBaseT< LineStyleModifier > thickness_modifiers
struct CurveMapping * custom_ipo
eGP_Lockaxis_Types lock_axis
struct CurveMapping * cur_falloff
struct CurveMapping * cur_primitive
struct CurveMapping * curfalloff
struct CurveMapping * curfalloff
struct CurveMapping curve_mapping
ListBaseT< KeyBlock > block
eLayerCollection_Flag flag
ListBaseT< LayerCollection > layer_collections
unsigned short local_collections_bits
eLineStyleModifier_Type type
ListBaseT< wmWindowManager > wm
ListBaseT< Collection > collections
ListBaseT< bArmature > armatures
ListBaseT< bGPdata > gpencils
ListBaseT< Camera > cameras
ListBaseT< FreestyleLineStyle > linestyles
bool is_locked_for_linking
ListBaseT< Light > lights
ListBaseT< World > worlds
ListBaseT< Brush > brushes
ListBaseT< Material > materials
ListBaseT< Object > objects
ListBaseT< Curve > curves
ListBaseT< WorkSpace > workspaces
ListBaseT< ParticleSettings > particles
ListBaseT< Image > images
ListBaseT< bAction > actions
ListBaseT< Scene > scenes
ListBaseT< LightProbe > lightprobes
ListBaseT< Tex > textures
ListBaseT< bScreen > screens
eMaterialGPencilStyle_Flag flag
DNA_DEPRECATED float gradient_shift[2]
DNA_DEPRECATED float gradient_scale[2]
DNA_DEPRECATED float texture_opacity
eMaterialGPencilStyle_FillStyle fill_style
DNA_DEPRECATED float gradient_angle
int face_sets_color_default
struct ModifierData * next
MultiresModifierFlag flags
DNA_DEPRECATED int color_space
DNA_DEPRECATED int color_space
DNA_DEPRECATED int dimensions
DNA_DEPRECATED int coloring
struct CurveMapping * curve_intensity
ListBaseT< ModifierData > modifiers
ListBaseT< ShaderFxData > shader_fx
ListBaseT< GpencilModifierData > greasepencil_modifiers
ListBaseT< bConstraint > constraints
eObject_ShapeFlag shapeflag
DNA_DEPRECATED unsigned int lay
eObject_EmptyImageVisibilityFlag empty_image_visibility_flag
eObject_TransFlag transflag
struct RigidBodyCon * rigidbody_constraint
struct CurveMapping * curve_intensity
struct CurveMapping * cavity_curve
struct CurveMapping * twistcurve
struct CurveMapping * clumpcurve
eParticleShapeFlag shape_flag
struct CurveMapping * roughcurve
struct ParticleSystem * psys
struct ClothModifierData * clmd
ListBaseT< SceneRenderLayer > layers
DNA_DEPRECATED short actlay
struct CurveMapping mblur_shutter_curve
ImageFormatData im_format
struct FFMpegCodecData ffcodecdata
struct PointCache * pointcache
ListBaseT< PointCache > ptcaches
DNA_DEPRECATED struct PointCache * pointcache
struct RigidBodyWorld_Shared * shared
ListBaseT< PointCache > ptcaches
eSceneDisplay_AA render_aa
eSceneDisplay_AA viewport_aa
float matcap_ssao_attenuation
float matcap_ssao_distance
DNA_DEPRECATED int motion_blur_samples
DNA_DEPRECATED float gtao_distance
DNA_DEPRECATED int shadow_cube_size_deprecated
float volumetric_light_clamp
int volumetric_shadow_samples
int gi_cubemap_resolution
float volumetric_sample_distribution
DNA_DEPRECATED float motion_blur_shutter_deprecated
int gi_visibility_resolution
ListBaseT< ViewLayer > view_layers
TransformOrientationSlot orientation_slots[4]
struct SceneDisplay display
struct Collection * master_collection
DNA_DEPRECATED struct Base * basact
ColorManagedViewSettings view_settings
ListBaseT< TransformOrientation > transform_spaces
IDProperty * layer_properties
DNA_DEPRECATED unsigned int lay
struct ToolSettings * toolsettings
struct SceneGpencil grease_pencil_settings
struct RigidBodyWorld * rigidbody_world
ListBaseT< ARegion > regionbase
ListBaseT< SpaceLink > spacedata
struct CurveMapping * curve_intensity
ListBaseT< PointCache > ptcaches
struct PointCache * pointcache
struct SoftBody_Shared * shared
DNA_DEPRECATED struct PointCache * pointcache
ListBaseT< PointCache > ptcaches
DNA_DEPRECATED bAction * action
ListBaseT< struct ARegion > regionbase
FileSelectParams * params
ListBaseT< ARegion > regionbase
eSpaceOutliner_Mode outlinevis
eSpaceOutliner_Filter filter
eSpaceOutliner_StoreFlag storeflag
eSpaceOutliner_ShowRestrictFlag show_restrict_flags
struct BLI_mempool * treestore
SpaceLink *(*) create(const ScrArea *area, const Scene *scene)
eEffectSpeedControlFlags flags
SubsurfModifierFlag flags
eSubsurfUVSmooth uv_smooth
struct CurveMapping * curve_thickness
struct CurveMapping * curve_intensity
eUnifiedPaintSettingsFlags flag
float rotation_quaternion[4]
float gpencil_paper_opacity
float wireframe_threshold
float vertex_paint_mode_opacity
float gpencil_grid_opacity
float sculpt_mode_face_sets_opacity
float weight_paint_mode_opacity
float gpencil_vertex_paint_opacity
float texture_paint_mode_opacity
eView3DOverlay_EditFlag edit_flag
float sculpt_mode_mask_opacity
float curvature_valley_factor
eV3DShadingColorType color_type
float cavity_valley_factor
float curvature_ridge_factor
eV3DShadingColorType wire_color_type
float studiolight_intensity
eV3DShadingLightingMode light
float cavity_ridge_factor
float background_color[3]
eView3D_GridFlag gridflag
eView3D_GizmoShowArmature gizmo_show_armature
eView3D_GizmoShowCamera gizmo_show_camera
eView3D_GizmoShowLight gizmo_show_light
eView3D_GizmoShowEmpty gizmo_show_empty
DNA_DEPRECATED char drawtype
struct FreestyleConfig freestyle_config
ListBaseT< LayerCollection > layer_collections
struct IDProperty * id_properties
struct World * world_override
struct Material * mat_override
float pass_alpha_threshold
struct CurveMapping * curfalloff
struct CurveMapping * cmap_curve
ListBaseT< bToolRef > tools
ListBaseT< FCurve > channels
ListBaseT< FCurve > curves
ListBaseT< Bone > bonebase
eBConstraint_SpaceTypes ownspace
eDopeSheet_FilterFlag filterflag
ListBaseT< bGPDstroke > strokes
ListBaseT< bGPDframe > frames
float vertex_paint_opacity
ListBaseT< bGPDpalettecolor > colors
DNA_DEPRECATED char colorname[128]
ListBaseT< bGPDpalette > palettes
ListBaseT< bGPDlayer > layers
struct bNodeSocket * next
ListBaseT< bNodeLink > links
ListBaseT< bNodeSocket > inputs
DNA_DEPRECATED float scale_out_x
DNA_DEPRECATED float scale_in_x
ListBaseT< struct bConstraint > constraints
DNA_DEPRECATED float scale_out_z
DNA_DEPRECATED float scale_in_z
ListBaseT< bPoseChannel > chanbase
ListBaseT< struct ScrVert > vertbase
ListBaseT< struct ScrArea > areabase
DNA_DEPRECATED struct Scene * scene
DNA_DEPRECATED struct bScreen * screen
struct WorkSpaceInstanceHook * workspace_hook
#define PAINT_BLEND_DIFFERENCE
#define PAINT_BLEND_EXCLUSION
#define PAINT_BLEND_COLORDODGE
#define PAINT_BLEND_SATURATION
#define EEVEE_GET_FLOAT(_props, _name)
#define PAINT_BLEND_LUMINOSITY
#define PAINT_BLEND_HARDLIGHT
#define PAINT_BLEND_AVERAGE
#define EEVEE_GET_BOOL(_props, _name, _flag)
#define EEVEE_GET_INT(_props, _name)
#define PAINT_BLEND_ALPHA_ADD
#define PAINT_BLEND_OVERLAY
#define PAINT_BLEND_ALPHA_SUB
#define CUMA_EXTEND_EXTRAPOLATE_OLD
#define PAINT_BLEND_SOFTLIGHT
#define PAINT_BLEND_SMEAR
#define PAINT_BLEND_SCREEN
#define PAINT_BLEND_LIGHTEN
#define PAINT_BLEND_DARKEN