diff options
Diffstat (limited to 'examples/bezier_tool/src/main.rs')
-rw-r--r-- | examples/bezier_tool/src/main.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs index fcb7733c..8012ea0a 100644 --- a/examples/bezier_tool/src/main.rs +++ b/examples/bezier_tool/src/main.rs @@ -172,12 +172,14 @@ mod bezier { ) .unwrap(); - let mesh = Primitive::Mesh2D { - origin: Point::new(bounds.x, bounds.y), - buffers: Mesh2D { - vertices: buffer.vertices, - indices: buffer.indices, - }, + let mesh = Primitive::Translate { + translation: Vector::new(bounds.x, bounds.y), + content: Box::new(Primitive::Mesh2D { + buffers: Mesh2D { + vertices: buffer.vertices, + indices: buffer.indices, + }, + }), }; ( |