From c3d56342784bd97cce666f24539db31cbd5506d9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 6 Mar 2008 21:49:05 +0000 Subject: draw unknown textures in hot pink --- src/render/model.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/render') 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 & 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; -- cgit v1.2.3