mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Return copy of Light from LightStage
This commit is contained in:
parent
c704a8d8c5
commit
ec496f1907
2 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ void LightStage::Shadow::setKeylightFrustum(ViewFrustum* viewFrustum, float zBac
|
|||
_projection = ortho;
|
||||
}
|
||||
|
||||
const LightStage::LightPointer& LightStage::addLight(model::LightPointer light) {
|
||||
const LightStage::LightPointer LightStage::addLight(model::LightPointer light) {
|
||||
Shadow stageShadow{light};
|
||||
LightPointer stageLight = std::make_shared<Light>(std::move(stageShadow));
|
||||
lights.push_back(stageLight);
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
using LightPointer = std::shared_ptr<Light>;
|
||||
using Lights = std::vector<LightPointer>;
|
||||
|
||||
const LightPointer& addLight(model::LightPointer light);
|
||||
const LightPointer addLight(model::LightPointer light);
|
||||
// TODO: removeLight
|
||||
|
||||
Lights lights;
|
||||
|
|
Loading…
Reference in a new issue