Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_node.c
| Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | #endif | ||||
| nodeFromView(node->parent, loc[0], loc[1], &loc[0], &loc[1]); | nodeFromView(node->parent, loc[0], loc[1], &loc[0], &loc[1]); | ||||
| } | } | ||||
| node->locx = loc[0]; | node->locx = loc[0]; | ||||
| node->locy = loc[1]; | node->locy = loc[1]; | ||||
| } | } | ||||
| /* handle intersection with noodles */ | /* handle intersection with noodles */ | ||||
| if (tc->data_len == 1) { | if (t->modifiers & MOD_NODE_LINK_OFF) { | ||||
| ED_node_link_intersect_test(t->area, 1); | ED_node_link_attach_highlight_clear(t->area); | ||||
| } | |||||
| else { | |||||
| ED_node_link_attach_highlight(t->area); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Special After Transform Node | /** \name Special After Transform Node | ||||
| Show All 15 Lines | if (ntree) { | ||||
| } | } | ||||
| } | } | ||||
| ED_node_tree_propagate_change(C, bmain, ntree); | ED_node_tree_propagate_change(C, bmain, ntree); | ||||
| } | } | ||||
| } | } | ||||
| if (!canceled) { | if (!canceled) { | ||||
| ED_node_post_apply_transform(C, snode->edittree); | ED_node_post_apply_transform(C, snode->edittree); | ||||
| ED_node_link_insert(bmain, t->area); | ED_node_link_attach_highlighted(bmain, t->area); | ||||
| } | } | ||||
| /* clear link line */ | ED_node_link_attach_highlight_clear(t->area); | ||||
| ED_node_link_intersect_test(t->area, 0); | |||||
| } | } | ||||
| /** \} */ | /** \} */ | ||||