Commit f5bb69d1 authored by Zack Galbreath's avatar Zack Galbreath Committed by Code Review
Browse files

Merge topic 'fix-radapter-parent-index' into master

43d4a38b Fix assert in vtkRAdapter
parents a3e99a32 43d4a38b
...@@ -779,8 +779,8 @@ vtkTree* vtkRAdapter::RToVTKTree(SEXP variable) ...@@ -779,8 +779,8 @@ vtkTree* vtkRAdapter::RToVTKTree(SEXP variable)
if (parent >= 0) if (parent >= 0)
{ {
weight = weights->GetValue(tree->GetEdgeId(parent, vertex)); weight = weights->GetValue(tree->GetEdgeId(parent, vertex));
weight += nodeWeights->GetValue(parent);
} }
weight += nodeWeights->GetValue(parent);
nodeWeights->SetValue(vertex, weight); nodeWeights->SetValue(vertex, weight);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment