1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-27 05:37:25 +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);
}
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())