1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 15:40:32 +00:00

Don't clamp GeomMorpherController recovered weight value

Seems that Morrowind doesn't do it.
This commit is contained in:
Capostrophic 2020-08-07 10:07:19 +03:00
parent 5c7ecb865c
commit 35de34c019

View File

@ -197,7 +197,6 @@ void GeomMorpherController::update(osg::NodeVisitor *nv, osg::Drawable *drawable
float val = 0;
if (!(*it).empty())
val = it->interpKey(input);
val = std::max(0.f, std::min(1.f, val));
SceneUtil::MorphGeometry::MorphTarget& target = morphGeom->getMorphTarget(i);
if (target.getWeight() != val)