summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@joel-desktop.(none)>2008-01-02 15:44:56 +0900
committerJoel Bosveld <joel@joel-desktop.(none)>2008-01-02 15:44:56 +0900
commitc44784be5fe857c0656ab4dbf6c67665790d17d3 (patch)
tree5ee93544847da2e63d67bbf5907aae227adf15c5
parent9b367277872f87969e7cc70d2e23d76949077058 (diff)
downloadcubedbus-c44784be5fe857c0656ab4dbf6c67665790d17d3.tar.gz
cubedbus-c44784be5fe857c0656ab4dbf6c67665790d17d3.tar.bz2
Don't break if it can't find mtl file.
If it can't find mtl file, it will just draw untextured instead. Also instead of showing the file name, it will show full path to the file
-rw-r--r--cubedbusModel.c.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/cubedbusModel.c.in b/cubedbusModel.c.in
index 9edd1d6..589f8c9 100644
--- a/cubedbusModel.c.in
+++ b/cubedbusModel.c.in
@@ -233,8 +233,8 @@ cubedbusAddModelObject (CubedbusObject *obj, CompOption *option, int nOption)
{
compLogMessage(obj->s->display, "cubedbus", CompLogLevelWarn, "mtl: can't open %s: %s",
- mtllib[mtlCount], strerror(errno));
- return FALSE;
+ tmpName, strerror(errno));
+ break;
}
free(tmpName);
tmpName = NULL;