mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
STARK: Workaround to support Emma's lipsync
This commit is contained in:
parent
4f168f41f2
commit
9487c4bdd3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user