1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 14:59:54 +00:00

Fix(CS): Correct build issues on some compilers

This commit is contained in:
Dave Corley 2023-12-23 13:29:06 -06:00
parent 33ce7782e9
commit 25f3e09da9
2 changed files with 10 additions and 5 deletions

View file

@ -615,10 +615,15 @@ osg::ref_ptr<CSVRender::TagBase> CSVRender::Cell::getSnapTarget(unsigned int ele
void CSVRender::Cell::selectFromGroup(const std::vector<std::string> group)
{
for (const auto& [_, object] : mObjects)
if (auto found = std::ranges::find_if(group.begin(), group.end(),
[&object](const std::string& id) { return object->getReferenceId() == id; });
found != group.end())
object->setSelected(true, osg::Vec4f(1, 0, 1, 1));
{
for (const auto& objectName : group)
{
if (objectName == object->getReferenceId())
{
object->setSelected(true, osg::Vec4f(1, 0, 1, 1));
}
}
}
}
void CSVRender::Cell::unhideAll()

View file

@ -14,8 +14,8 @@
#include "editmode.hpp"
#include "instancedragmodes.hpp"
#include <apps/opencs/model/world/idtable.hpp>
#include <components/esm3/selectiongroup.hpp>
#include <model/world/idtable.hpp>
class QDragEnterEvent;
class QDropEvent;