mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
silenced a warning
This commit is contained in:
parent
ea79d9b7c3
commit
10b4c1d904
@ -90,7 +90,7 @@ void Objects::insertMesh (const MWWorld::Ptr& ptr, const std::string& mesh)
|
|||||||
|
|
||||||
Ogre::Vector3 extents = ent->getBoundingBox().getSize();
|
Ogre::Vector3 extents = ent->getBoundingBox().getSize();
|
||||||
extents *= insert->getScale();
|
extents *= insert->getScale();
|
||||||
float size = std::max(std::max(extents.x, extents.y), extents.z);
|
// float size = std::max(std::max(extents.x, extents.y), extents.z);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
bool small = (size < 250); /// \todo config value
|
bool small = (size < 250); /// \todo config value
|
||||||
@ -143,7 +143,7 @@ void Objects::insertMesh (const MWWorld::Ptr& ptr, const std::string& mesh)
|
|||||||
else
|
else
|
||||||
sg = mStaticGeometry[ptr.getCell()];
|
sg = mStaticGeometry[ptr.getCell()];
|
||||||
}
|
}
|
||||||
|
|
||||||
// This specifies the size of a single batch region.
|
// This specifies the size of a single batch region.
|
||||||
// If it is set too high:
|
// If it is set too high:
|
||||||
// - there will be problems choosing the correct lights
|
// - there will be problems choosing the correct lights
|
||||||
@ -246,7 +246,7 @@ void Objects::removeCell(MWWorld::Ptr::CellStore* store)
|
|||||||
mRenderer.getScene()->destroyStaticGeometry (sg);
|
mRenderer.getScene()->destroyStaticGeometry (sg);
|
||||||
sg = 0;
|
sg = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mBounds.find(store) != mBounds.end())
|
if(mBounds.find(store) != mBounds.end())
|
||||||
mBounds.erase(store);
|
mBounds.erase(store);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user