projects
/
demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get height, camera + cow movement with keys
[demo]
/
src
/
scene.cc
diff --git
a/src/scene.cc
b/src/scene.cc
index
d033a8f
..
0666bd8
100644
(file)
--- a/
src/scene.cc
+++ b/
src/scene.cc
@@
-205,7
+205,6
@@
static Mesh *load_mesh(const aiScene *scene, unsigned int index)
else
fprintf(stderr, "No faces found.\n");
else
fprintf(stderr, "No faces found.\n");
- mesh->mat_idx = amesh->mMaterialIndex;
return mesh;
}
return mesh;
}
@@
-247,8
+246,6
@@
static Material *load_material(const aiScene *ascene, Scene *scene, unsigned int
mat->dtex = scene->find_texture(tex_fname.c_str());
if(!mat->dtex) {
mat->dtex = scene->find_texture(tex_fname.c_str());
if(!mat->dtex) {
- printf("!mat->dtex\n");
-
mat->dtex = gfx_create_texture();
if(!mat->dtex->load(tex_fname.c_str())) {
mat->dtex = gfx_create_texture();
if(!mat->dtex->load(tex_fname.c_str())) {
@@
-296,6
+293,5
@@
Texture *Scene::find_texture(const char *name)
return textures[i];
}
}
return textures[i];
}
}
- fprintf(stderr, "Texture %s not found.\n", name);
return 0;
}
\ No newline at end of file
return 0;
}
\ No newline at end of file