[fixed] .irrmesh & tangents

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
pc0de
Posts: 300
Joined: Wed Dec 05, 2007 4:41 pm

[fixed] .irrmesh & tangents

Post by pc0de »

Vertices with tangents aren't being read. Small patch:

Code: Select all

Index: source/Irrlicht/CIrrMeshFileLoader.cpp
===================================================================
--- source/Irrlicht/CIrrMeshFileLoader.cpp	(revision 1422)
+++ source/Irrlicht/CIrrMeshFileLoader.cpp	(working copy)
@@ -255,7 +255,7 @@
 				if (sbuffer2)
 					readIndices(reader, indexCount, sbuffer2->Indices);
 				else
-				if (sbuffer2)
+				if (sbuffer3)
 					readIndices(reader, indexCount, sbuffer3->Indices);
 
 				insideIndexSection = false;
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Fixed, thanks :)
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply