diff options
author | Stijn Buys <ingar@osirion.org> | 2011-11-20 16:37:19 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-11-20 16:37:19 +0000 |
commit | e9cc1520bfbc28c1c62a14d1f0e625ca8549d9d4 (patch) | |
tree | 6e29ecf9fee2fffb256f7bf9a3a08ac5e3007e17 /src/model/material.cc | |
parent | 01b98a40b9c6d8ace96538342ccdd6ac46fbbbe7 (diff) |
Added origin brush support for func_rotate.
Diffstat (limited to 'src/model/material.cc')
-rw-r--r-- | src/model/material.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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; |