Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_nodes.cc
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | if (node->type == NODE_GROUP) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphContext *ctx) | static void updateDepsgraph(ModifierData *md, const ModifierUpdateDepsgraphContext *ctx) | ||||
| { | { | ||||
| NodesModifierData *nmd = reinterpret_cast<NodesModifierData *>(md); | NodesModifierData *nmd = reinterpret_cast<NodesModifierData *>(md); | ||||
| DEG_add_modifier_to_transform_relation(ctx->node, "Nodes Modifier"); | |||||
| if (nmd->node_group != nullptr) { | if (nmd->node_group != nullptr) { | ||||
| DEG_add_node_tree_relation(ctx->node, nmd->node_group, "Nodes Modifier"); | DEG_add_node_tree_relation(ctx->node, nmd->node_group, "Nodes Modifier"); | ||||
| Set<ID *> used_ids; | Set<ID *> used_ids; | ||||
| findUsedIds(*nmd->node_group, used_ids); | findUsedIds(*nmd->node_group, used_ids); | ||||
| for (ID *id : used_ids) { | for (ID *id : used_ids) { | ||||
| if (GS(id->name) == ID_OB) { | if (GS(id->name) == ID_OB) { | ||||
| Object *object = reinterpret_cast<Object *>(id); | Object *object = reinterpret_cast<Object *>(id); | ||||
| ▲ Show 20 Lines • Show All 998 Lines • Show Last 20 Lines | |||||