From 83b66522dfcad1b2428ce4fd81d83e39a051a4c5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 12 Aug 2009 15:48:03 +0000 Subject: documentation update --- 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 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) { -- cgit v1.2.3