mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 18:40:01 +00:00
DialogueWindow: do not execute onFrame() when not visible
This commit is contained in:
parent
f1f9173f24
commit
82287445af
@ -490,7 +490,7 @@ void DialogueWindow::onReferenceUnavailable()
|
||||
|
||||
void DialogueWindow::onFrame()
|
||||
{
|
||||
if(mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
|
||||
if(mMainWidget->getVisible() && mEnabled && mPtr.getTypeName() == typeid(ESM::NPC).name())
|
||||
{
|
||||
int disp = std::max(0, std::min(100,
|
||||
MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(mPtr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user