Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-11-02 23:50:09 +0000
committerStijn Buys <ingar@osirion.org>2009-11-02 23:50:09 +0000
commit3605a7bd8fffebfba38d31025b6f33cb82626a3b (patch)
treeef7cab404fcea2ecf7508a638211b58861c6539a
parent017826a21a5e8d5cf2c7ab93fdceac1cc49fcf25 (diff)
ase loader: ignore caulk
-rw-r--r--src/model/asefile.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/model/asefile.cc b/src/model/asefile.cc
index b0072d0..657d73c 100644
--- a/src/model/asefile.cc
+++ b/src/model/asefile.cc
@@ -107,6 +107,16 @@ Material *ASEFile::read_material(std::istream &is)
while ((line.get(c)) && (c != '"'))
n += c;
+ // ignore caulk
+ if (n.compare("common/caulk") == 0) {
+ material = 0;
+ continue;
+ }
+ if (n.compare("textures/common/caulk") == 0) {
+ material = 0;
+ continue;
+ }
+
// find material
material = Material::find(n);
if (!material) {