From 2f9d9ba94b33a188eff70b72ac154bbba1292868 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 10 Mar 2025 09:05:34 +0100 Subject: [PATCH] Add partialeq to integrationparameters (#801) --- CHANGELOG.md | 6 ++++++ src/dynamics/integration_parameters.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 306c0a3..4bf292c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Unreleased + +### Added + +- `IntegrationParameters` now implements `PartialEq`. + ## v0.23.1 (05 March 2025) ### Added diff --git a/src/dynamics/integration_parameters.rs b/src/dynamics/integration_parameters.rs index 99b6fe4..01e9338 100644 --- a/src/dynamics/integration_parameters.rs +++ b/src/dynamics/integration_parameters.rs @@ -10,7 +10,7 @@ use super::RigidBodyActivation; pub(crate) static BLOCK_SOLVER_ENABLED: bool = cfg!(feature = "dim2"); /// Parameters for a time-step of the physics engine. -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, PartialEq)] #[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))] pub struct IntegrationParameters { /// The timestep length (default: `1.0 / 60.0`).