Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-06 21:49:05 +0000
committerStijn Buys <ingar@osirion.org>2008-03-06 21:49:05 +0000
commitc3d56342784bd97cce666f24539db31cbd5506d9 (patch)
treef27353ee59c268435e2c276c545735978022301d
parent435c394a08f20523e1c665743cc0b9d42e524f53 (diff)
draw unknown textures in hot pink
-rw-r--r--src/render/model.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/model.cc b/src/render/model.cc
index 848bc49..ae34270 100644
--- a/src/render/model.cc
+++ b/src/render/model.cc
@@ -412,7 +412,8 @@ void Model::make_face(math::Plane3f *face, std::vector<math::Plane3f *> & planes
color = new math::Color(0, 0, 0);
} else if (face->texture() == "common/entity") {
color = 0;
- }
+ } else
+ color = new math::Color(1.0f, 0.0, 1.0f);
Face *mf = new Face(face->normal()*-1, color);
if (color) delete color;