Skip to content

Commit

Permalink
Fix warnings in vtkSMPVMoleculeRepresentationProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasVuaille committed Dec 11, 2018
1 parent 834eb0a commit d10b68c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -116,14 +116,14 @@ const char* vtkSMPVMoleculeRepresentationProxy::GetPresetDisplayName(int preset)
int vtkSMPVMoleculeRepresentationProxy::GetCurrentPreset()
{
MapperParametersPreset p;
p.RenderAtoms = vtkSMUncheckedPropertyHelper(this, "RenderAtoms").GetAsInt();
p.RenderBonds = vtkSMUncheckedPropertyHelper(this, "RenderBonds").GetAsInt();
p.RenderAtoms = vtkSMUncheckedPropertyHelper(this, "RenderAtoms").GetAsInt() == 1;
p.RenderBonds = vtkSMUncheckedPropertyHelper(this, "RenderBonds").GetAsInt() == 1;
p.AtomicRadiusType = vtkSMUncheckedPropertyHelper(this, "AtomicRadiusType").GetAsDouble();
p.AtomicRadiusFactor = vtkSMUncheckedPropertyHelper(this, "AtomicRadiusFactor").GetAsDouble();
p.UseMultiCylindersForBonds =
vtkSMUncheckedPropertyHelper(this, "MultiCylindersForBonds").GetAsInt();
vtkSMUncheckedPropertyHelper(this, "MultiCylindersForBonds").GetAsInt() == 1;
p.BondRadius = vtkSMUncheckedPropertyHelper(this, "BondRadius").GetAsDouble();
p.UseAtomColorForBonds = vtkSMUncheckedPropertyHelper(this, "BondColorMode").GetAsInt();
p.UseAtomColorForBonds = vtkSMUncheckedPropertyHelper(this, "BondColorMode").GetAsInt() == 1;

for (const auto& preset : this->Presets)
{
Expand Down

0 comments on commit d10b68c

Please sign in to comment.