Skip to content

Commit 1ebdb61

Browse files
committed
- remove debug print, update .gitignore
1 parent 549fa80 commit 1ebdb61

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ Cargo.lock
1515

1616
# pmbuild
1717
build/
18-
config.user.jsn
18+
config.user.jsn
19+
20+
# macos
21+
.DS_Store

plugins/ecs/src/lib.rs

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub fn camera_constants_from_orbit(rot: &Vec3f, focus: &Vec3f, zoom: f32, aspect
9898
let proj = Mat4f::create_perspective_projection_lh_yup(f32::deg_to_rad(fov_degrees), aspect, 0.1, 10000.0);
9999
// translation matrix
100100
let translate_zoom = Mat4f::from_translation(vec3f(0.0, 0.0, zoom));
101-
let translate_focus = Mat4f::from_translation(*focus);
101+
let translate_focus = Mat4f::from_translation(*focus);
102102
// build view / proj matrix
103103
let view = translate_focus * mat_rot * translate_zoom;
104104
let pos = view.get_column(3);
@@ -241,7 +241,7 @@ fn update_camera_fly(
241241

242242
// generate proj matrix
243243
let aspect = pmfx.get_window_aspect("main_dock");
244-
244+
245245
// assign view proj
246246
let constants = camera_constants_from_fly(&position, &camera.rot, aspect, 60.0);
247247
view_proj.0 = constants.view_projection_matrix;
@@ -255,9 +255,9 @@ fn update_cameras(
255255
time: Res<TimeRes>,
256256
mut pmfx: ResMut<PmfxRes>,
257257
mut query: Query<(&Name, &mut Position, &mut Camera, &mut ViewProjectionMatrix)>) {
258-
258+
259259
pmfx.get_world_buffers_mut().camera.clear();
260-
260+
261261
for (name, mut position, mut camera, mut view_proj) in &mut query {
262262
match camera.camera_type {
263263
CameraType::Fly => {
@@ -305,7 +305,7 @@ impl BevyPlugin {
305305
}
306306
}
307307
}
308-
308+
309309
// deprecated using get_system function
310310
for (lib_name, lib) in &client.libs {
311311
unsafe {
@@ -408,7 +408,7 @@ impl BevyPlugin {
408408
let error_col = vec4f(1.0, 0.0, 0.3, 1.0);
409409
let warning_col = vec4f(1.0, 7.0, 0.0, 1.0);
410410
let default_col = vec4f(1.0, 1.0, 1.0, 1.0);
411-
411+
412412
// schedule
413413
client.imgui.separator();
414414
client.imgui.text("Schedule");
@@ -428,13 +428,13 @@ impl BevyPlugin {
428428

429429
if self.errors.contains_key(graph) {
430430
client.imgui.colour_text(
431-
&format!("Render Graph: {}: {}.", "error", graph),
431+
&format!("Render Graph: {}: {}.", "error", graph),
432432
error_col
433433
);
434434

435435
for err in &self.errors[graph] {
436436
client.imgui.colour_text(
437-
&format!(" {}", err),
437+
&format!(" {}", err),
438438
error_col
439439
);
440440
}
@@ -446,7 +446,7 @@ impl BevyPlugin {
446446
render_function_names.push(format!("{}: {}", v.0, v.1));
447447
}
448448
self.status_ui_category(
449-
&mut client.imgui,
449+
&mut client.imgui,
450450
&format!("Render Graph ({}):", graph),
451451
&render_function_names
452452
);
@@ -529,7 +529,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
529529

530530
// dynamically change demos and lookup infos in other libs
531531
let schedule_info = self.get_demo_schedule_info(&mut client);
532-
532+
533533
// get schedule or use default and warn the user
534534
self.schedule_info = if let Some(info) = schedule_info {
535535
info
@@ -576,7 +576,6 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
576576

577577
// hook in updates funcs
578578
for func_name in &info.update {
579-
println!("adding {}", func_name);
580579
if let Some(func) = self.get_system_function(func_name, "", &client) {
581580
self.schedule.add_systems(func);
582581
}
@@ -633,7 +632,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
633632

634633
// run setup if requested, we did it here so hotline resources are inserted into World
635634
if self.run_setup {
636-
let (cam, vp, pos) = self.setup_camera();
635+
let (cam, vp, pos) = self.setup_camera();
637636
self.world.spawn((
638637
ViewProjectionMatrix(vp),
639638
pos,
@@ -723,7 +722,7 @@ impl Plugin<gfx_platform::Device, os_platform::App> for BevyPlugin {
723722

724723
// -/+ to toggle through demos, ignore test missing and test failing demos
725724
let wrap_len = demo_list.len();
726-
725+
727726
let cur_demo_index = demo_list.iter().position(|d| *d == self.session_info.active_demo);
728727
if let Some(index) = cur_demo_index {
729728
let keys = client.app.get_keys_pressed();

0 commit comments

Comments
 (0)