fix setting color of 3D objects

pull/1453/head
ozantonkal 11 years ago
parent b64e6ccc6c
commit f5816c883f
  1. 4
      modules/viz/src/widget.cpp

@ -142,10 +142,6 @@ void cv::viz::Widget3D::setColor(const Color &color)
actor->GetMapper ()->ScalarVisibilityOff ();
actor->GetProperty ()->SetColor (c.val);
actor->GetProperty ()->SetEdgeColor (c.val);
actor->GetProperty ()->SetAmbient (0.8);
actor->GetProperty ()->SetDiffuse (0.8);
actor->GetProperty ()->SetSpecular (0.8);
actor->GetProperty ()->SetLighting (0);
actor->Modified ();
}

Loading…
Cancel
Save