diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-12 15:48:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-12 15:48:03 +0000 |
commit | 83b66522dfcad1b2428ce4fd81d83e39a051a4c5 (patch) | |
tree | d3b961b130e87a891ac2f64106e56bb65e9ee548 /src | |
parent | e8f928ab56d581cb06ec10c2da2cb6706bca6bb3 (diff) |
documentation update
Diffstat (limited to 'src')
-rw-r--r-- | src/model/material.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/model/material.cc b/src/model/material.cc index f9f330d..416e491 100644 --- a/src/model/material.cc +++ b/src/model/material.cc @@ -80,6 +80,8 @@ void Material::init() while (shaderlist.getline(line, 1023)) { if ((line[0] == 0) || (line[0] == '#') || (line[0] == ';')) { continue; + if ((line[0] == '/') && (line[1] == '/')) + continue; } else { std::string s(line); aux::trim(s); @@ -135,8 +137,10 @@ void Material::load_shader(const std::string &shadername) std::string firstword; if (linestream >> firstword) { + if (firstword.compare("//") == 0) { + continue; - if (firstword.compare("}") == 0) { + } else if (firstword.compare("}") == 0) { parselevel--; } else if (firstword.compare("{") == 0) { |