Commit 60075af9 authored by Haocheng LIU's avatar Haocheng LIU
Browse files

Fix assigning wrong name for cell color array

parent 4db17e02
Pipeline #54437 running with stage
......@@ -423,7 +423,7 @@ vtkSmartPointer<vtkPolyData> vtkModelMultiBlockSource::GenerateRepresentationFro
vtkNew<vtkUnsignedCharArray> cellColor;
cellColor->SetNumberOfComponents(4);
cellColor->SetNumberOfTuples(pd->GetNumberOfCells());
cellColor->SetName("Entity Color");
cellColor->SetName("Entity");
for (int i = 0; i < 4; ++i)
{
cellColor->FillComponent(i,
......@@ -542,7 +542,7 @@ void vtkModelMultiBlockSource::GenerateRepresentationFromModel(
vtkNew<vtkUnsignedCharArray> cellColor;
cellColor->SetNumberOfComponents(4);
cellColor->SetNumberOfTuples(pd->GetNumberOfCells());
cellColor->SetName("Entity Color");
cellColor->SetName("Entity");
for (int i = 0; i < 4; ++i)
{
cellColor->FillComponent(i,
......
......@@ -76,7 +76,7 @@ class TestModelPhrases(unittest.TestCase):
'Expected model name to be mutable.')
self.assertEqual(s1[0].isSubtitleMutable(), False,
'Expected model subtitle to be immutable.')
self.assertEqual(s1[0].isRelatedColorMutable(), False,
self.assertEqual(s1[0].isRelatedColorMutable(), True,
'Expected model color to be immutable.')
self.assertEqual(s1[0].relatedPropertyName(), '',
'Unexpected related property name "{p}".'.format(p=s1[0].relatedPropertyName()))
......
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