show node properties as a sidebar

This commit is contained in:
itsmattkc
2019-04-24 10:26:42 +10:00
parent 616e2b4740
commit 9b2f91f483
8 changed files with 124 additions and 97 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ void NodeEdgeUI::adjust()
if (node != nullptr) {
// Check if this node has the output row
int row_index = node->Widget()->GetEffect()->IndexOfRow(edge_->output());
int row_index = node->GetNode()->IndexOfRow(edge_->output());
if (row_index > -1) {
output_node_ = node;
@@ -34,7 +34,7 @@ void NodeEdgeUI::adjust()
}
// Check if this node has the input row
row_index = node->Widget()->GetEffect()->IndexOfRow(edge_->input());
row_index = node->GetNode()->IndexOfRow(edge_->input());
if (row_index > -1) {
input_node_ = node;