mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-16 08:09:42 +00:00
Don't display the harvested plant if graphic herbalism is off
This commit is contained in:
parent
81ceb497a1
commit
2edbabd3d7
1 changed files with 2 additions and 1 deletions
|
@ -1927,7 +1927,8 @@ namespace MWRender
|
||||||
mObjectRoot->accept(visitor);
|
mObjectRoot->accept(visitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ptr.getRefData().getCustomData() != nullptr && ObjectAnimation::canBeHarvested())
|
if (Settings::game().mGraphicHerbalism && ptr.getRefData().getCustomData() != nullptr
|
||||||
|
&& ObjectAnimation::canBeHarvested())
|
||||||
{
|
{
|
||||||
const MWWorld::ContainerStore& store = ptr.getClass().getContainerStore(ptr);
|
const MWWorld::ContainerStore& store = ptr.getClass().getContainerStore(ptr);
|
||||||
if (!store.hasVisibleItems())
|
if (!store.hasVisibleItems())
|
||||||
|
|
Loading…
Reference in a new issue