mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +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
@ -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…
x
Reference in New Issue
Block a user