Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/testmodelview.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/testmodelview.cc b/src/client/testmodelview.cc
index 31dc98f..4164d6c 100644
--- a/src/client/testmodelview.cc
+++ b/src/client/testmodelview.cc
@@ -37,7 +37,6 @@ TestModelView::~TestModelView()
void TestModelView::set_modelname(const std::string & modelname)
{
model::Model *model = model::Model::load(modelname);
- testmodelview_modelview->set_modelname(modelname);
std::ostringstream str;
str << modelname << '\n';
@@ -52,6 +51,11 @@ void TestModelView::set_modelname(const std::string & modelname)
str << "tris: " << model->model_tris_count << '\n';
str << "quads: " << model->model_quad_count << '\n';
str << "fragments: " << frags << '\n';
+
+ testmodelview_modelview->set_modelname(modelname);
+ } else {
+ testmodelview_modelview->set_modelname("");
+ testmodelview_modelview->set_background(true);
}
testmodelview_text->set_text(str.str());
}