From df7939de1a05ba08dd0e1d0b1fe3d8b0b4181a4c Mon Sep 17 00:00:00 2001 From: Vsevolod Kremianskii Date: Fri, 7 May 2021 16:34:05 +0700 Subject: [PATCH] Fix unwanted model culling during character generation --- src/engine/game/gui/chargen/chargen.cpp | 1 + src/engine/game/gui/chargen/classselect.cpp | 1 + src/engine/game/gui/chargen/portraitselect.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/engine/game/gui/chargen/chargen.cpp b/src/engine/game/gui/chargen/chargen.cpp index b4a38c58..2bacb176 100644 --- a/src/engine/game/gui/chargen/chargen.cpp +++ b/src/engine/game/gui/chargen/chargen.cpp @@ -377,6 +377,7 @@ shared_ptr CharacterGeneration::getCharacterModel(SceneGraph &sc creature->setAppearance(_character.appearance); creature->equip("g_a_clothes01"); creature->loadAppearance(); + creature->getModelSceneNode()->setCullable(false); creature->updateModelAnimation(); auto model = make_shared(ModelUsage::GUI, Models::instance().get("cgbody_light"), &sceneGraph); diff --git a/src/engine/game/gui/chargen/classselect.cpp b/src/engine/game/gui/chargen/classselect.cpp index 1d7b6273..10bbb374 100644 --- a/src/engine/game/gui/chargen/classselect.cpp +++ b/src/engine/game/gui/chargen/classselect.cpp @@ -148,6 +148,7 @@ shared_ptr ClassSelection::getCharacterModel(int appearance, Sce character->setAppearance(appearance); character->equip("g_a_clothes01"); character->loadAppearance(); + character->getModelSceneNode()->setCullable(false); character->updateModelAnimation(); auto model = make_shared(ModelUsage::GUI, Models::instance().get("cgbody_light"), &sceneGraph); diff --git a/src/engine/game/gui/chargen/portraitselect.cpp b/src/engine/game/gui/chargen/portraitselect.cpp index 0b5a934e..d9710cde 100644 --- a/src/engine/game/gui/chargen/portraitselect.cpp +++ b/src/engine/game/gui/chargen/portraitselect.cpp @@ -106,6 +106,7 @@ shared_ptr PortraitSelection::getCharacterModel(SceneGraph &scen creature->setAppearance(getAppearanceFromCurrentPortrait()); creature->equip("g_a_clothes01"); creature->loadAppearance(); + creature->getModelSceneNode()->setCullable(false); creature->updateModelAnimation(); // Attach creature model to the root scene node