This commit is contained in:
scrawl 2015-04-26 14:34:14 +02:00
parent b4a06bd78d
commit 8971a200f7
2 changed files with 2 additions and 1 deletions

View File

@ -554,6 +554,7 @@ void SkyManager::create()
depth->setWriteMask(false); depth->setWriteMask(false);
mRootNode->getOrCreateStateSet()->setAttributeAndModes(depth, osg::StateAttribute::ON); mRootNode->getOrCreateStateSet()->setAttributeAndModes(depth, osg::StateAttribute::ON);
mRootNode->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON); mRootNode->getOrCreateStateSet()->setMode(GL_BLEND, osg::StateAttribute::ON);
mRootNode->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::ON);
mCreated = true; mCreated = true;
} }

View File

@ -2401,7 +2401,7 @@ namespace MWWorld
void World::enableActorCollision(const MWWorld::Ptr& actor, bool enable) void World::enableActorCollision(const MWWorld::Ptr& actor, bool enable)
{ {
OEngine::Physic::PhysicActor *physicActor = mPhysEngine->getCharacter(actor.getRefData().getHandle()); OEngine::Physic::PhysicActor *physicActor = 0;//mPhysEngine->getCharacter(actor.getRefData().getHandle());
if (physicActor) if (physicActor)
physicActor->enableCollisionBody(enable); physicActor->enableCollisionBody(enable);
} }