Skip to content

Commit

Permalink
hack: Add reflect, clone, copy, & serialize.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Sep 22, 2024
1 parent 81f336e commit 3b2054d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dynamics/solver/joints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,5 +340,8 @@ impl AngleLimit {
}

/// Disables the joint of the entity it is placed on.
#[derive(Component, Debug)]
#[derive(Reflect, Clone, Copy, Component, Debug)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(feature = "serialize", reflect(Serialize, Deserialize))]
#[reflect(Debug, Component)]
pub struct DisableJoint;

0 comments on commit 3b2054d

Please sign in to comment.