Skip to content

Commit

Permalink
Fix broken NaN serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Jul 4, 2023
1 parent f41f110 commit c0ff526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dub.sdl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license "BSD 2-clause"
dependency "imagefmt" version="~>2.1.0"
dependency "inmath" version="~>1.0.5"
dependency "i2d-opengl" version="~>1.0.0"
dependency "fghj" version="~>1.0.1"
dependency "fghj" version="~>1.0.2"
versions "GL_32" "GL_ARB_gl_spirv" "GL_KHR_blend_equation_advanced" "GL_ARB_texture_filter_anisotropic"
stringImportPaths "shaders/"
preBuildCommands "dub run gitver -- --prefix IN --file source/inochi2d/ver.d --mod inochi2d.ver --appname Inochi2D"
Expand Down
4 changes: 2 additions & 2 deletions source/inochi2d/math/serialization.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void serialize(V, S)(V value, ref S serializer) if(isVector!V) {
auto state = serializer.arrayBegin();
static foreach(i; 0..V.dimension) {
serializer.elemBegin;
serializer.putValue(value.vector[i]);
serializer.serializeValue(value.vector[i]);
}
serializer.arrayEnd(state);
}
Expand All @@ -23,7 +23,7 @@ void serialize(T, S)(T matr, ref S serializer) if(isMatrix!T) {
static foreach(y; 0..T.rows) {
static foreach(x; 0..T.cols) {
serializer.elemBegin;
serializer.putValue(matr.matrix[x][y]);
serializer.serializeValue(matr.matrix[x][y]);
}
}
serializer.arrayEnd(state);
Expand Down

0 comments on commit c0ff526

Please sign in to comment.