1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-15 16:39:41 +00:00

Don't display the harvested plant if graphic herbalism is off

This commit is contained in:
Evil Eye 2024-06-21 12:15:11 +02:00
parent 81ceb497a1
commit 2edbabd3d7

View file

@ -1927,7 +1927,8 @@ namespace MWRender
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);
if (!store.hasVisibleItems())