Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model.cc')
-rw-r--r--src/core/model.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/model.cc b/src/core/model.cc
index 3b1cabd..1e571c3 100644
--- a/src/core/model.cc
+++ b/src/core/model.cc
@@ -69,6 +69,7 @@ std::map<std::string, Model*> Model::registry;
Model::Model(std::string const & name) :
model_name(name)
{
+ model_valid = false;
model_scale = 1.0f / 1024.0f;
std::string fn("maps/");
@@ -214,6 +215,9 @@ Model::Model(std::string const & name) :
ifs.close();
+ if (model_face.size()) {
+ model_valid = true;
+ }
con_debug << " maps/" << name << ".map " << model_face.size() << " polygons\n";
}