1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 12:53:53 +00:00

Do not skip inactive keyframe controllers (Bug #1942)

This commit is contained in:
MiroslavR 2016-07-10 19:02:28 +02:00
parent 2329812988
commit 2a987b6857

View file

@ -321,8 +321,8 @@ namespace NifOsg
continue; continue;
} }
if (!(ctrl->flags & Nif::NiNode::ControllerFlag_Active)) // Vanilla seems to ignore the "active" flag for NiKeyframeController,
continue; // so we don't want to skip inactive controllers here.
const Nif::NiStringExtraData *strdata = static_cast<const Nif::NiStringExtraData*>(extra.getPtr()); const Nif::NiStringExtraData *strdata = static_cast<const Nif::NiStringExtraData*>(extra.getPtr());
const Nif::NiKeyframeController *key = static_cast<const Nif::NiKeyframeController*>(ctrl.getPtr()); const Nif::NiKeyframeController *key = static_cast<const Nif::NiKeyframeController*>(ctrl.getPtr());