Skip to content

Commit 2d37081

Browse files
committed
fix(mesh): set default transform to identity matrix in deserialization
1 parent a15d5f7 commit 2d37081

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/common/components/mesh-renderer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ namespace our {
99
// Notice how we just get a string from the json file and pass it to the AssetLoader to get us the actual asset
1010
mesh = AssetLoader<Mesh>::get(data["mesh"].get<std::string>());
1111
material = AssetLoader<Material>::get(data["material"].get<std::string>());
12+
transform = glm::mat4(1.0f); // default value for the transform is the identity matrix
1213
}
1314
} // namespace our

0 commit comments

Comments
 (0)