Skip to content

Commit

Permalink
also import the default handle when feature disabled (#8456)
Browse files Browse the repository at this point in the history
# Objective

- Fix compilation issue when default font is not enabled

## Solution

- Fix import
  • Loading branch information
mockersf authored Apr 22, 2023
1 parent a9f766c commit 149c86b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/bevy_text/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ use bevy_render::color::Color;
use bevy_utils::default;
use serde::{Deserialize, Serialize};

use crate::Font;
#[cfg(feature = "default_font")]
use crate::DEFAULT_FONT_HANDLE;
use crate::{Font, DEFAULT_FONT_HANDLE};

#[derive(Component, Debug, Clone, Reflect)]
#[reflect(Component, Default)]
Expand Down

0 comments on commit 149c86b

Please sign in to comment.