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:
commit
7888a11c36
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