Commit c78d99d8 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell Committed by Code Review
Browse files

Merge topic 'chemistry-initialization' into master

94cce966 Set color ivars direct, be sure to delete strings
parents aaa8659d 94cce966
...@@ -71,6 +71,7 @@ vtkCMLMoleculeReader::vtkCMLMoleculeReader() ...@@ -71,6 +71,7 @@ vtkCMLMoleculeReader::vtkCMLMoleculeReader()
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
vtkCMLMoleculeReader::~vtkCMLMoleculeReader() vtkCMLMoleculeReader::~vtkCMLMoleculeReader()
{ {
this->SetFileName(NULL);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
......
...@@ -56,7 +56,7 @@ vtkMoleculeMapper::vtkMoleculeMapper() ...@@ -56,7 +56,7 @@ vtkMoleculeMapper::vtkMoleculeMapper()
BondRadius(0.075) BondRadius(0.075)
{ {
// Initialize ivars: // Initialize ivars:
this->SetBondColor(50, 50, 50); this->BondColor[0] = this->BondColor[1] = this->BondColor[2] = 50;
// Setup glyph sources // Setup glyph sources
vtkNew<vtkSphereSource> sphere; vtkNew<vtkSphereSource> sphere;
......
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