STARK: Workaround to support Emma's lipsync

This commit is contained in:
Dmitry Gladkov 2020-10-25 22:06:28 -07:00 committed by Paweł Kołodziejski
parent 4f168f41f2
commit 9487c4bdd3

View File

@ -73,7 +73,9 @@ void VisualActor::setNewFace(char shape) {
const Gfx::Texture *VisualActor::resolveTexture(const Material *material) const {
const Gfx::Texture *texture = nullptr;
if (_textureSetFacial && material->name == "face") {
// Emma's face material is incorrectly named "faceEmma".
// This workaround enables Emma's lipsync, which does not work in the original game engine.
if (_textureSetFacial && (material->name == "face" || material->name == "faceEmma")) {
texture = _textureSetFacial->getTexture(Common::String::format("%c.bmp", _faceTextureName));
if (!texture) {