Skip to content

Commit

Permalink
Merge branch 'lushemptyplants' into 'master'
Browse files Browse the repository at this point in the history
Don't display the harvested plant if graphic herbalism is off

See merge request OpenMW/openmw!4193
  • Loading branch information
psi29a committed Jun 22, 2024
2 parents e88cbf8 + 2edbabd commit 7888a11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/openmw/mwrender/animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7888a11

Please sign in to comment.