Skip to content

Commit

Permalink
Fixed demo example
Browse files Browse the repository at this point in the history
  • Loading branch information
gwihlidal committed Jan 13, 2019
1 parent cfa5094 commit 5b86cd8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## 0.1.5 (2019-01-14)

* Fixed demo example

## 0.1.4 (2019-01-12)

* Upgraded meshoptimizer library to 0.10.0.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meshopt"
version = "0.1.4"
version = "0.1.5"
authors = ["Graham Wihlidal <[email protected]>"]
description = "Rust ffi bindings and idiomatic wrapper for zeux/meshoptimizer"
homepage = "https://github.com/gwihlidal/meshopt-rs"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
meshopt = "0.1.4"
meshopt = "0.1.5"
```

and add this to your crate root:
Expand Down
2 changes: 1 addition & 1 deletion examples/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ fn opt_fetch(mesh: &mut Mesh) {
fn opt_fetch_remap(mesh: &mut Mesh) {
let remap = meshopt::optimize_vertex_fetch_remap(&mesh.indices, mesh.vertices.len());
mesh.indices = meshopt::remap_index_buffer(Some(&mesh.indices), mesh.indices.len(), &remap);
mesh.vertices = meshopt::remap_vertex_buffer(&mesh.vertices, &remap);
mesh.vertices = meshopt::remap_vertex_buffer(&mesh.vertices, mesh.vertices.len(), &remap);
}

fn opt_complete(mesh: &mut Mesh) {
Expand Down

0 comments on commit 5b86cd8

Please sign in to comment.