Cargo fmt
This commit is contained in:
committed by
Sébastien Crozet
parent
8a7ec1f72e
commit
d22d3fcc9f
@@ -1,6 +1,6 @@
|
|||||||
pub use self::fixed_joint::*;
|
pub use self::fixed_joint::*;
|
||||||
pub use self::impulse_joint::*;
|
|
||||||
pub use self::generic_joint::*;
|
pub use self::generic_joint::*;
|
||||||
|
pub use self::impulse_joint::*;
|
||||||
pub use self::motor_model::MotorModel;
|
pub use self::motor_model::MotorModel;
|
||||||
pub use self::multibody_joint::*;
|
pub use self::multibody_joint::*;
|
||||||
pub use self::prismatic_joint::*;
|
pub use self::prismatic_joint::*;
|
||||||
@@ -10,8 +10,8 @@ pub use self::revolute_joint::*;
|
|||||||
pub use self::spherical_joint::*;
|
pub use self::spherical_joint::*;
|
||||||
|
|
||||||
mod fixed_joint;
|
mod fixed_joint;
|
||||||
mod impulse_joint;
|
|
||||||
mod generic_joint;
|
mod generic_joint;
|
||||||
|
mod impulse_joint;
|
||||||
mod motor_model;
|
mod motor_model;
|
||||||
mod multibody_joint;
|
mod multibody_joint;
|
||||||
mod prismatic_joint;
|
mod prismatic_joint;
|
||||||
|
|||||||
@@ -229,7 +229,9 @@ impl ParallelIslandSolver {
|
|||||||
if self.parallel_contact_constraints.generic_jacobians.len() < contact_j_id {
|
if self.parallel_contact_constraints.generic_jacobians.len() < contact_j_id {
|
||||||
self.parallel_contact_constraints.generic_jacobians = DVector::zeros(contact_j_id);
|
self.parallel_contact_constraints.generic_jacobians = DVector::zeros(contact_j_id);
|
||||||
} else {
|
} else {
|
||||||
self.parallel_contact_constraints.generic_jacobians.fill(0.0);
|
self.parallel_contact_constraints
|
||||||
|
.generic_jacobians
|
||||||
|
.fill(0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.parallel_joint_constraints.generic_jacobians.len() < joint_j_id {
|
if self.parallel_joint_constraints.generic_jacobians.len() < joint_j_id {
|
||||||
|
|||||||
Reference in New Issue
Block a user