Tools/MeshExtractor: Fixed a lot of stuff, finally made the Doodads render, the WMO's have been disabled for now.
ToDo: * Fix the doodads positions. * Review and re-implement some code. P.D: Help me please.
This commit is contained in:
1 parent
7ca6f56a06
commit
a68c29e15c
18 files changed
+138
-70
No files matched your search
@@ -5,17 +5,7 @@
|
||||
|
||||
void ObjectDataHandler::ProcessMapChunk( MapChunk* chunk )
|
||||
{
|
||||
if (!Source->HasObjectData)
|
||||
return;
|
||||
// fuck it blizzard, why is this crap necessary?
|
||||
int32 firstIndex = Source->ObjectData->GetFirstIndex("MCNK");
|
||||
if (firstIndex == -1)
|
||||
return;
|
||||
if (uint32(firstIndex + chunk->Index) > Source->ObjectData->Chunks.size())
|
||||
return;
|
||||
Chunk* ourChunk = Source->ObjectData->Chunks[firstIndex + chunk->Index];
|
||||
if (ourChunk->Length == 0)
|
||||
return;
|
||||
ChunkedData* subChunks = new ChunkedData(ourChunk->GetStream(), ourChunk->Length, 2);
|
||||
ProcessInternal(subChunks);
|
||||
/*if (!Source->HasObjectData)
|
||||
return;*/
|
||||
ProcessInternal(chunk);
|
||||
}
|
||||
Reference in new issue
Block a user