9#define DNA_DEPRECATED_ALLOW
99 const int curves_num = curves->geometry.curve_num;
101 &curves->geometry.curve_data_legacy,
CD_PROP_INT32,
"resolution", curves_num)))
104 resolution = std::max(resolution, 1);
108 &curves->geometry.curve_data_legacy,
CD_PROP_INT8,
"nurbs_order", curves_num)))
111 nurbs_order = std::max<int8_t>(nurbs_order, 1);
120 if (node->is_reroute()) {
121 if (node->storage !=
nullptr) {
137 node->storage =
data;
174 if (!default_value->value) {
177 bool is_linked =
false;
179 if (link->tosock == skip_input) {
193 input_node.
storage = input_node_storage;
194 input_node_storage->
boolean =
true;
197 *
tree, input_node,
SOCK_OUT,
"NodeSocketBool",
"Boolean");
202 default_value->value =
false;
226 brush->alpha = settings->draw_strength;
231 settings->simplify_px = settings->simplify_f /
239 scene->view_settings.temperature = 6500.0f;
240 scene->view_settings.tint = 10.0f;
268 n->input_temperature = n->output_temperature = 6500.0f;
269 n->input_tint = n->output_tint = 10.0f;
279 curves->geometry.attributes_active_index = curves->attributes_active_index_legacy;
324 if (input_storage->format.linear_colorspace_settings.name[0] ==
'\0') {
338 const bool first_save_as_render = first_input_storage->save_as_render;
339 bool all_inputs_have_same_save_as_render =
true;
343 if (
bool(input_storage->save_as_render) != first_save_as_render) {
344 all_inputs_have_same_save_as_render =
false;
351 if (all_inputs_have_same_save_as_render) {
363 if (!input_storage->use_node_format) {
367 input_storage->use_node_format =
false;
368 input_storage->format = storage->
format;
379 const ListBase *exporters = &collection->exporters;
398 if (
tree->default_group_node_width == 0) {
411 if (region !=
nullptr) {
426 if (region !=
nullptr) {
void BKE_collection_exporter_name_set(const ListBase *exporters, CollectionExport *data, const char *newname)
@ CTX_MODE_VERTEX_GPENCIL_LEGACY
@ CTX_MODE_WEIGHT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GPENCIL_LEGACY
@ CTX_MODE_PAINT_GREASE_PENCIL
@ CTX_MODE_PAINT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GREASE_PENCIL
@ CTX_MODE_WEIGHT_GREASE_PENCIL
@ CTX_MODE_VERTEX_GREASE_PENCIL
CustomData interface, see also DNA_customdata_types.h.
void * CustomData_get_layer_named_for_write(CustomData *data, eCustomDataType type, blender::StringRef name, int totelem)
Low-level operations for grease pencil.
#define MAIN_VERSION_FILE_ATLEAST(main, ver, subver)
constexpr int GROUP_NODE_DEFAULT_WIDTH
#define FOREACH_NODETREE_END
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
#define SH_NODE_BSDF_PRINCIPLED
#define CMP_NODE_COLORBALANCE
#define GEO_NODE_SIMULATION_OUTPUT
#define CMP_NODE_OUTPUT_FILE
#define CMP_NODE_COMPOSITE_DEPRECATED
void BKE_paint_brushes_set_default_references(ToolSettings *ts)
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
#define LISTBASE_FOREACH(type, var, list)
BLI_INLINE bool BLI_listbase_is_empty(const ListBase *lb)
#define LISTBASE_FOREACH_MUTABLE(type, var, list)
MINLINE void copy_v3_fl(float r[3], float f)
MINLINE void copy_v2_fl(float r[2], float f)
char * STRNCPY(char(&dst)[N], const char *src)
#define STRNCPY_UTF8(dst, src)
Object groups, one object can be in many groups at once.
#define DNA_struct_default_get(struct_name)
@ NODES_MODIFIER_BAKE_TARGET_INHERIT
@ NODES_MODIFIER_BAKE_TARGET_DISK
@ NODES_MODIFIER_PANEL_WARNINGS
@ SCE_EEVEE_FAST_GI_ENABLED
@ SEQ_SNAP_TO_PREVIEW_CENTER
@ SEQ_SNAP_TO_STRIPS_PREVIEW
@ SEQ_SNAP_TO_PREVIEW_BORDERS
@ R_IMF_IMTYPE_MULTILAYER
@ V2D_VIEWSYNC_SCREEN_TIME
BMesh const char void * data
void * MEM_callocN(size_t len, const char *str)
constexpr float LEGACY_RADIUS_CONVERSION_FACTOR
FileHandlerType * file_handler_find(StringRef idname)
SequencerToolSettings * tool_settings_ensure(Scene *scene)
char edge_weight_name[64]
char vertex_weight_name[64]
float central_cylindrical_range_v_min
float central_cylindrical_range_u_min
float central_cylindrical_range_u_max
float central_cylindrical_radius
float central_cylindrical_range_v_max
float gpencil_grid_color[3]
float gpencil_grid_scale[2]
float gpencil_grid_offset[2]
int gpencil_grid_subdivisions
char label[OP_MAX_TYPENAME]
void blo_do_versions_430(FileData *, Library *, Main *bmain)
static void update_paint_modes_for_brush_assets(Main &bmain)
static void hide_simulation_node_skip_socket_value(Main &bmain)
static void add_bevel_modifier_attribute_name_defaults(Main &bmain)
static void node_reroute_add_storage(bNodeTree &tree)
static void fix_built_in_curve_attribute_defaults(Main *bmain)
void do_versions_after_linking_430(FileData *, Main *bmain)
bNodeSocket & version_node_add_socket(bNodeTree &ntree, bNode &node, const eNodeSocketInOut in_out, const char *idname, const char *identifier)
void version_node_socket_index_animdata(Main *bmain, const int node_tree_type, const int node_type, const int socket_index_orig, const int socket_index_offset, const int total_number_of_sockets)
bNode & version_node_add_empty(bNodeTree &ntree, const char *idname)
bNodeLink & version_node_add_link(bNodeTree &ntree, bNode &node_a, bNodeSocket &socket_a, bNode &node_b, bNodeSocket &socket_b)