mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-19 06:04:22 +01:00
Set prop ownership to lights in TerrainWorld::prop_add().
This commit is contained in:
parent
1c14d1cb4c
commit
601185c2bd
@ -692,11 +692,10 @@ void TerrainWorld::prop_add(Transform transform, const Ref<PropData> &prop, cons
|
||||
light->set_indirect_energy(light_data->get_light_indirect_energy());
|
||||
light->set_negative(light_data->get_light_negative());
|
||||
light->set_specular(light_data->get_light_specular());
|
||||
light->set_owner_type(TerrainLight::OWNER_TYPE_PROP);
|
||||
|
||||
light_add(light);
|
||||
|
||||
// TODO store this in a chunk, and manage loading/unloading it with it
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user