mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-14 16:06:44 +00:00
Fix earlier broken commit
This commit is contained in:
parent
5c32460153
commit
e91d1a2b42
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,6 @@ namespace
|
||||||
|
|
||||||
std::string model = getModel(ptr, rendering.getResourceSystem()->getVFS());
|
std::string model = getModel(ptr, rendering.getResourceSystem()->getVFS());
|
||||||
const auto rotation = makeNodeRotation(ptr, RotationOrder::direct);
|
const auto rotation = makeNodeRotation(ptr, RotationOrder::direct);
|
||||||
if (!physics.getObject(ptr))
|
|
||||||
ptr.getClass().insertObject (ptr, model, rotation, physics);
|
|
||||||
if (!onlyPhysics)
|
if (!onlyPhysics)
|
||||||
{
|
{
|
||||||
bool useAnim = ptr.getClass().useAnim();
|
bool useAnim = ptr.getClass().useAnim();
|
||||||
|
@ -136,6 +134,8 @@ namespace
|
||||||
// Restore effect particles
|
// Restore effect particles
|
||||||
MWBase::Environment::get().getWorld()->applyLoopingParticles(ptr);
|
MWBase::Environment::get().getWorld()->applyLoopingParticles(ptr);
|
||||||
}
|
}
|
||||||
|
if (!physics.getObject(ptr))
|
||||||
|
ptr.getClass().insertObject (ptr, model, rotation, physics);
|
||||||
}
|
}
|
||||||
|
|
||||||
void addObject(const MWWorld::Ptr& ptr, const MWPhysics::PhysicsSystem& physics, DetourNavigator::Navigator& navigator)
|
void addObject(const MWWorld::Ptr& ptr, const MWPhysics::PhysicsSystem& physics, DetourNavigator::Navigator& navigator)
|
||||||
|
|
Loading…
Reference in a new issue