@@ -108,7 +108,7 @@ fn prepare_wireframes(
108
108
commands. entity ( entity) . insert ( uniform_offset) ;
109
109
} ;
110
110
111
- if config. debug_wireframes {
111
+ if config. on_all_meshes {
112
112
global_query. for_each ( add_wireframe_uniform) ;
113
113
} else {
114
114
wireframe_query. for_each ( add_wireframe_uniform) ;
@@ -160,10 +160,10 @@ pub struct Wireframe {
160
160
#[ derive( Debug , Clone ) ]
161
161
pub struct WireframeConfig {
162
162
/// Whether to show wireframes for all meshes. If `false`, only meshes with a [`Wireframe`] component will be rendered.
163
- pub debug_wireframes : bool ,
163
+ pub on_all_meshes : bool ,
164
164
/// The default color for wireframes.
165
165
///
166
- /// If [`Self::debug_wireframes `] is set, any [`Entity`] that does not have a [`Wireframe`] component attached to it will have
166
+ /// If [`Self::on_all_meshes `] is set, any [`Entity`] that does not have a [`Wireframe`] component attached to it will have
167
167
/// wireframes in this color. Otherwise, this will be the fallback color for any [`Wireframe`]s that does have a `None`
168
168
/// [`Wireframe::color`].
169
169
pub default_color : Color ,
@@ -172,7 +172,7 @@ pub struct WireframeConfig {
172
172
impl Default for WireframeConfig {
173
173
fn default ( ) -> Self {
174
174
Self {
175
- debug_wireframes : false ,
175
+ on_all_meshes : false ,
176
176
default_color : Color :: WHITE ,
177
177
}
178
178
}
@@ -326,7 +326,7 @@ fn queue_wireframes(
326
326
}
327
327
} ;
328
328
329
- if wireframe_config. debug_wireframes {
329
+ if wireframe_config. on_all_meshes {
330
330
material_meshes. p0 ( ) . iter ( ) . for_each ( add_render_phase) ;
331
331
} else {
332
332
material_meshes. p1 ( ) . iter ( ) . for_each ( add_render_phase) ;
0 commit comments