1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 12:11:32 +00:00

Merge branch 'lushemptyplants' into 'master'

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

See merge request OpenMW/openmw!4193
This commit is contained in:
psi29a 2024-06-22 16:35:59 +00:00
commit 7888a11c36

View file

@ -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())