fixed release build issue

This commit is contained in:
K Simmons 2022-09-13 15:26:10 -07:00
parent 0b5952e1bd
commit a7d0732f95

View file

@ -1,6 +1,7 @@
mod mouse_region; mod mouse_region;
mod mouse_region_event; mod mouse_region_event;
#[cfg(debug_assertions)]
use collections::HashSet; use collections::HashSet;
use serde::Deserialize; use serde::Deserialize;
use serde_json::json; use serde_json::json;
@ -247,6 +248,7 @@ impl Scene {
pub fn push_mouse_region(&mut self, region: MouseRegion) { pub fn push_mouse_region(&mut self, region: MouseRegion) {
if can_draw(region.bounds) { if can_draw(region.bounds) {
// Ensure that Regions cannot be added to a scene with the same region id. // Ensure that Regions cannot be added to a scene with the same region id.
#[cfg(debug_assertions)]
let region_id; let region_id;
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
{ {