1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-13 20:09:40 +00:00

Fix lights without a mesh

This commit is contained in:
scrawl 2013-02-23 09:17:12 +01:00
parent f17ea109ca
commit 7e816c826b

View file

@ -37,6 +37,8 @@ namespace MWClass
if (!model.empty()) if (!model.empty())
objects.insertMesh(ptr, "meshes\\" + model, true); objects.insertMesh(ptr, "meshes\\" + model, true);
else
objects.insertLight(ptr, NULL);
} }
void Light::insertObject(const MWWorld::Ptr& ptr, MWWorld::PhysicsSystem& physics) const void Light::insertObject(const MWWorld::Ptr& ptr, MWWorld::PhysicsSystem& physics) const