godot/thirdparty/embree/kernels/common/scene_verify.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
452 B
C++
Raw Normal View History

2024-02-24 11:40:55 +00:00
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "scene.h"
#include "../../common/algorithms/parallel_any_of.h"
namespace embree
{
void Scene::checkIfModifiedAndSet ()
{
if (isModified ()) return;
auto geometryIsModified = [this](size_t geomID)->bool {
return isGeometryModified(geomID);
};
if (parallel_any_of (size_t(0), geometries.size (), geometryIsModified)) {
setModified ();
}
}
}