Skip to content
Snippets Groups Projects
Commit f24734fe authored by StarArawn's avatar StarArawn
Browse files

Fixed compile error.

parent 641f0f57
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ pub fn extract_texts( ...@@ -54,7 +54,7 @@ pub fn extract_texts(
for char_layout in chars_layouts { for char_layout in chars_layouts {
let position = char_layout.position.into(); let position = char_layout.position.into();
let size = char_layout.size.into(); let size: Vec2 = char_layout.size.into();
extracted_texts.push(ExtractQuadBundle { extracted_texts.push(ExtractQuadBundle {
extracted_quad: ExtractedQuad { extracted_quad: ExtractedQuad {
font_handle: Some(font_handle.clone()), font_handle: Some(font_handle.clone()),
......
...@@ -31,7 +31,7 @@ pub fn extract( ...@@ -31,7 +31,7 @@ pub fn extract(
for layout in layouts { for layout in layouts {
let position = layout.position.into(); let position = layout.position.into();
let size = layout.size.into(); let size: Vec2 = layout.size.into();
extracted_texts.push(ExtractCharBundle { extracted_texts.push(ExtractCharBundle {
extracted_quad: ExtractedChar { extracted_quad: ExtractedChar {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment