1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:53:51 +00:00

Avoid casting shadows in first-person view

This commit is contained in:
Chris Robinson 2013-07-09 23:50:44 -07:00
parent 025fa4e0d5
commit 6de56615aa

View file

@ -371,7 +371,12 @@ NifOgre::ObjectList NpcAnimation::insertBoundedPart(const std::string &model, in
setRenderProperties(objects, mVisibilityFlags, RQG_Main, RQG_Alpha);
for(size_t i = 0;i < objects.mEntities.size();i++)
objects.mEntities[i]->getUserObjectBindings().setUserAny(Ogre::Any(group));
{
Ogre::Entity *ent = objects.mEntities[i];
ent->getUserObjectBindings().setUserAny(Ogre::Any(group));
if(mViewMode == VM_FirstPerson)
ent->setCastShadows(false);
}
for(size_t i = 0;i < objects.mParticles.size();i++)
objects.mParticles[i]->getUserObjectBindings().setUserAny(Ogre::Any(group));