diff options
author | Matthew Michelotti <michelotti.matthew@gmail.com> | 2018-05-24 14:08:20 -0500 |
---|---|---|
committer | Matthew Michelotti <michelotti.matthew@gmail.com> | 2018-05-24 14:08:20 -0500 |
commit | f905b3148397c1db1f283e1cf78f5ae5326147dd (patch) | |
tree | c9f0b2febcb22f35eb6159729ba069e881543d81 | |
parent | a5b9551306bad3267fdcd445334b8070bc579bd0 (diff) |
fix to cargo_rerun_if_changed method
-rw-r--r-- | gate_build/src/asset_packer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gate_build/src/asset_packer.rs b/gate_build/src/asset_packer.rs index 7aa9173..f604fb0 100644 --- a/gate_build/src/asset_packer.rs +++ b/gate_build/src/asset_packer.rs @@ -65,7 +65,8 @@ impl AssetPacker { /// /// Panics if called after calling methods to pack assets. pub fn cargo_rerun_if_changed(&mut self) { - assert!(self.sprites.is_none(), "cannot add rerun checks after asset packing has already started"); + assert!(self.sprites.is_none() && self.music.is_none() && self.sounds.is_none(), + "cannot add rerun checks after asset packing has already started"); self.check_rerun = true; } |