From e9cc1520bfbc28c1c62a14d1f0e625ca8549d9d4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 20 Nov 2011 16:37:19 +0000 Subject: Added origin brush support for func_rotate. --- src/model/material.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/model/material.cc') diff --git a/src/model/material.cc b/src/model/material.cc index 2f32f6c..56bb3fc 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -68,6 +68,9 @@ void Material::print() } if (flags() & Clip) { con_print << "clip "; + } + if (flags() & Origin) { + con_print << "origin "; } } con_print << std::endl; @@ -238,6 +241,8 @@ void Material::load_shader(const std::string &shadername) material->set_flags(Ignore); } else if (firstword.compare("clip") == 0) { material->set_flags(Clip); + } else if (firstword.compare("origin") == 0) { + material->set_flags(Origin); } else if (firstword.compare("qer_editorimage") == 0) { // keyword qer_editorimage is ignored continue; -- cgit v1.2.3