From 302f11ce816ffe4b51f48c42972bb58475bcca5d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Nov 2013 18:25:03 +0000 Subject: Material API cleanups, added support for bounds materials. --- src/model/material.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/model/material.cc') diff --git a/src/model/material.cc b/src/model/material.cc index f8ffbc0..25c1f27 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -81,6 +81,9 @@ void Material::print() if (flags() & FlagDecal) { con_print << "decal "; } + if (flags() & FlagBounds) { + con_print << "bounds "; + } } con_print << std::endl; @@ -279,7 +282,8 @@ void Material::load_shader(const std::string &shadername) material->set_flags(FlagOrigin); } else if (firstword.compare("decal") == 0) { material->set_flags(FlagDecal); - + } else if (firstword.compare("bounds") == 0) { + material->set_flags(FlagBounds); } else if (firstword.compare("qer_editorimage") == 0) { // keyword qer_editorimage is ignored continue; -- cgit v1.2.3