Blender  V2.93
Functions
MOD_nodes.h File Reference

Go to the source code of this file.

Functions

void MOD_nodes_update_interface (struct Object *object, struct NodesModifierData *nmd)
 
void MOD_nodes_init (struct Main *bmain, struct NodesModifierData *nmd)
 

Function Documentation

◆ MOD_nodes_init()

void MOD_nodes_init ( struct Main bmain,
struct NodesModifierData nmd 
)

◆ MOD_nodes_update_interface()

void MOD_nodes_update_interface ( Object object,
NodesModifierData nmd 
)

Rebuild the list of properties based on the sockets exposed as the modifier's node group inputs. If any properties correspond to the old properties by name and type, carry over the values.

Definition at line 948 of file MOD_nodes.cc.

References DEG_id_tag_update(), get_socket_property_type(), Object::id, ID_RECALC_GEOMETRY, bNodeSocket::identifier, IDP_AddToGroup(), IDP_CopyPropertyContent(), IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IDP_GROUP, IDP_New(), bNodeTree::inputs, SocketPropertyType::is_correct_type, LISTBASE_FOREACH, NodesModifierData::node_group, NodesModifierSettings::properties, NodesModifierData::settings, and socket_add_property().

Referenced by ntreeUpdateAllUsers().