Skip to content

Commit

Permalink
Fix regression on Link To Spline: Vertex should be linkable (#2345). C…
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Oct 9, 2021
1 parent 61a290b commit 21e1a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synfig-studio/src/synfigapp/actions/valuedescblinelink.cpp
Expand Up @@ -116,11 +116,11 @@ Action::ValueDescBLineLink::is_candidate(const ParamList &x)
if (!ValueNode_DynamicList::Handle::cast_dynamic(value_desc_valuenode))
return false;

//! if any of the selected valuedesc belongs to the spline, can't link.
// if any of the selected valuedesc belongs to the spline, can't link.
const auto range = x.equal_range("selected_value_desc");
for (auto it = range.first; it != range.second; ++it) {
const auto& selected_value_desc = it->second.get_value_desc();
if (selected_value_desc.parent_is_value_node() && value_desc == selected_value_desc.get_parent_value_node())
if (selected_value_desc.parent_is_value_node() && value_desc_valuenode == selected_value_desc.get_parent_value_node())
return false;
}

Expand Down

0 comments on commit 21e1a3e

Please sign in to comment.