diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-06 21:49:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-06 21:49:05 +0000 |
commit | c3d56342784bd97cce666f24539db31cbd5506d9 (patch) | |
tree | f27353ee59c268435e2c276c545735978022301d | |
parent | 435c394a08f20523e1c665743cc0b9d42e524f53 (diff) |
draw unknown textures in hot pink
-rw-r--r-- | src/render/model.cc | 3 |
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; |