Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions MikuMikuFormats/Vmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ namespace vmd
/// 補間曲線
char interpolation[6][4];
/// 視野角
float angle;
/// 不明データ
char unknown[3];
int angle;

uint8_t isPerspective;

void Read(std::istream *stream)
{
Expand All @@ -99,8 +99,8 @@ namespace vmd
stream->read((char*) position, sizeof(float) * 3);
stream->read((char*) orientation, sizeof(float) * 3);
stream->read((char*) interpolation, sizeof(char) * 24);
stream->read((char*) &angle, sizeof(float));
stream->read((char*) unknown, sizeof(char) * 3);
stream->read((char*) &angle, sizeof(int));
stream->read((char*) &isPerspective, sizeof(char) );
}

void Write(std::ostream *stream)
Expand All @@ -110,8 +110,8 @@ namespace vmd
stream->write((char*)position, sizeof(float) * 3);
stream->write((char*)orientation, sizeof(float) * 3);
stream->write((char*)interpolation, sizeof(char) * 24);
stream->write((char*)&angle, sizeof(float));
stream->write((char*)unknown, sizeof(char) * 3);
stream->write((char*)&angle, sizeof(int));
stream->write((char*)&isPerspective, sizeof(char));
}
};

Expand Down Expand Up @@ -359,4 +359,4 @@ namespace vmd
return true;
}
};
}
}