mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
removing lights by pointer
This commit is contained in:
@@ -253,6 +253,18 @@ namespace vb01{
|
||||
|
||||
}
|
||||
|
||||
void Node::removeLight(Light *light){
|
||||
for(int i = 0; i < lights.size(); i++)
|
||||
if(lights[i] == light){
|
||||
lights.erase(lights.begin() + i);
|
||||
|
||||
Root::getSingleton()->shiftNumLights(false);
|
||||
updateShaders();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Node::removeLight(int id){
|
||||
Root::getSingleton()->shiftNumLights(false);
|
||||
Light *light = lights[id];
|
||||
|
||||
Reference in New Issue
Block a user