You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
embree: Update to 4.3.1
This commit is contained in:
committed by
Jakub Marcowski
parent
d2f9245ddc
commit
c43eab55a4
24
thirdparty/embree/kernels/common/scene_verify.cpp
vendored
Normal file
24
thirdparty/embree/kernels/common/scene_verify.cpp
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// 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 ();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user