ability to pass enhanced-determinism feature to rapier3d/2d

- doc fix
- incorrect import fix
This commit is contained in:
Dmitry
2021-08-06 21:45:39 +03:00
parent b32b5874e7
commit be151fd2b2
3 changed files with 7 additions and 3 deletions
+1
View File
@@ -44,6 +44,7 @@ imageproc = "0.22.0"
[features]
enable_profiler = ["rg3d-core/enable_profiler"]
serde_integration = ["glutin/serde", "serde"]
enhanced-determinism = ["rapier3d/enhanced-determinism", "rapier2d/enhanced-determinism"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = "0.27.0"
+1 -1
View File
@@ -335,7 +335,7 @@ impl SoundContext {
///
/// This method internally locks a mutex, so if you'll try to do something like this:
///
/// ```norun
/// ```no_run
/// # use rg3d_sound::context::SoundContext;
/// # let ctx = SoundContext::new();
/// let state = ctx.state();
+5 -2
View File
@@ -6,7 +6,6 @@ use crate::{
math::Rect,
pool::Handle,
},
physics::parry::utils::hashmap::Entry,
renderer::{
framework::{
error::FrameworkError,
@@ -24,7 +23,11 @@ use crate::{
scene2d::{light::Light, node::Node, Scene2d, Scene2dContainer},
utils::log::{Log, MessageKind},
};
use std::{cell::RefCell, collections::HashMap, rc::Rc};
use std::{
cell::RefCell,
collections::hash_map::{Entry, HashMap},
rc::Rc,
};
mod cache;