Skip to content

Commit 7e9224e

Browse files
authored
Update according to recent SOFA changes on RGBAColor (#93)
1 parent 5f2768e commit 7e9224e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModelOrderReduction/component/forcefield/HyperReducedTetrahedronFEMForceField.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ void HyperReducedTetrahedronFEMForceField<DataTypes>::draw(const core::visual::V
578578
else
579579
{
580580
helper::ColorMap::evaluator<Real> evalColor = m_VonMisesColorMap->getEvaluator(minVM, maxVM);
581-
auto col = sofa::type::RGBAColor::fromVec4(evalColor(vM[reducedIntegrationDomain(i)]));
581+
sofa::type::RGBAColor col = evalColor(vM[reducedIntegrationDomain(i)]);
582582
col[3] = 1.0f;
583583
color[0] = col;
584584
color[1] = col;

0 commit comments

Comments
 (0)