mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
segregateMeshGroups() --> createRenderItems()
This commit is contained in:
parent
726928c14c
commit
d8fa0d1dd1
2 changed files with 5 additions and 5 deletions
|
@ -575,7 +575,7 @@ void Model::renderSetup(RenderArgs* args) {
|
|||
}
|
||||
|
||||
if (!_meshGroupsKnown && isLoaded()) {
|
||||
segregateMeshGroups();
|
||||
createRenderItems();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -600,7 +600,7 @@ bool Model::addToScene(std::shared_ptr<render::Scene> scene,
|
|||
bool showCollisionHull) {
|
||||
if ((!_meshGroupsKnown || showCollisionHull != _showCollisionHull) && isLoaded()) {
|
||||
_showCollisionHull = showCollisionHull;
|
||||
segregateMeshGroups();
|
||||
createRenderItems();
|
||||
}
|
||||
|
||||
bool somethingAdded = false;
|
||||
|
@ -1236,7 +1236,7 @@ AABox Model::getRenderableMeshBound() const {
|
|||
}
|
||||
}
|
||||
|
||||
void Model::segregateMeshGroups() {
|
||||
void Model::createRenderItems() {
|
||||
Geometry::Pointer geometry;
|
||||
bool showingCollisionHull = false;
|
||||
if (_showCollisionHull && _collisionGeometry) {
|
||||
|
@ -1303,7 +1303,7 @@ void Model::segregateMeshGroups() {
|
|||
|
||||
bool Model::initWhenReady(render::ScenePointer scene) {
|
||||
if (isActive() && isRenderable() && !_meshGroupsKnown && isLoaded()) {
|
||||
segregateMeshGroups();
|
||||
createRenderItems();
|
||||
|
||||
render::PendingChanges pendingChanges;
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ protected:
|
|||
|
||||
void recalculateMeshBoxes(bool pickAgainstTriangles = false);
|
||||
|
||||
void segregateMeshGroups(); // used to calculate our list of translucent vs opaque meshes
|
||||
void createRenderItems(); // used to calculate our list of translucent vs opaque meshes
|
||||
static model::MaterialPointer _collisionHullMaterial;
|
||||
|
||||
bool _meshGroupsKnown;
|
||||
|
|
Loading…
Reference in a new issue