Changeset 5dc130a in OpenModelica
- Timestamp:
- 2023-03-21T17:22:34+01:00 (14 months ago)
- Parents:
- 16cbb66
- git-author:
- anotheruserofgithub <96748782+anotheruserofgithub@…> (03/09/23 00:07:01)
- git-committer:
- anotheruserofgithub <96748782+anotheruserofgithub@…> (03/21/23 17:22:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMEdit/OMEditLIB/Animation/Visualization.cpp
r16cbb66 r5dc130a 1635 1635 osg::ref_ptr<osg::Material> material = dynamic_cast<osg::Material*>(ss->getAttribute(osg::StateAttribute::MATERIAL)); 1636 1636 if (!material.valid()) material = new osg::Material(); 1637 material->setAmbient(osg::Material::FRONT_AND_BACK, osg::Vec4f(color.redF(), color.greenF(), color.blueF(), color.alphaF())); 1637 1638 material->setDiffuse(osg::Material::FRONT_AND_BACK, osg::Vec4f(color.redF(), color.greenF(), color.blueF(), color.alphaF())); 1638 1639 ss->setAttribute(material.get());
Note: See TracChangeset
for help on using the changeset viewer.