mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-13 05:56:39 +03:00
Merge pull request #2085 from akortunov/herbalism
Native graphics herbalism support
This commit is contained in:
commit
74112976b2
18 changed files with 232 additions and 4 deletions
|
@ -27,6 +27,9 @@ const int CellSizeInUnits = 8192;
|
|||
// A label to mark night/day visual switches
|
||||
const std::string NightDayLabel = "NightDaySwitch";
|
||||
|
||||
// A label to mark visual switches for herbalism feature
|
||||
const std::string HerbalismLabel = "HerbalismSwitch";
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -635,6 +635,8 @@ namespace NifOsg
|
|||
const Nif::NiSwitchNode* niSwitchNode = static_cast<const Nif::NiSwitchNode*>(nifNode);
|
||||
if (niSwitchNode->name == Constants::NightDayLabel && !SceneUtil::hasUserDescription(rootNode, Constants::NightDayLabel))
|
||||
rootNode->getOrCreateUserDataContainer()->addDescription(Constants::NightDayLabel);
|
||||
else if (niSwitchNode->name == Constants::HerbalismLabel && !SceneUtil::hasUserDescription(rootNode, Constants::HerbalismLabel))
|
||||
rootNode->getOrCreateUserDataContainer()->addDescription(Constants::HerbalismLabel);
|
||||
}
|
||||
|
||||
return node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue