Skip to content

Commit 36197eb

Browse files
authored
Fix the defaults for ragdolls (#152)
This PR fixes the defaults for Ragdoll. This will make the example work again, as well as any Ragdoll that does not have explicit mass set.
1 parent 1a6dc19 commit 36197eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/bevy_animation_graph_core/src/ragdoll/definition.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ use serde::{Deserialize, Serialize};
1212
use uuid::Uuid;
1313

1414
#[derive(Asset, Debug, Clone, Reflect, Serialize, Deserialize)]
15+
#[serde(default)]
1516
pub struct Ragdoll {
1617
pub bodies: HashMap<BodyId, Body>,
1718
pub colliders: HashMap<ColliderId, Collider>,
1819
pub joints: HashMap<JointId, Joint>,
19-
20-
#[serde(default)]
2120
pub suffixes: SymmetrySuffixes,
22-
2321
/// Total mass will be divided among all colliders according to the volume of their attached
2422
/// colliders.
25-
#[serde(default)]
2623
pub total_mass: f32,
2724
}
2825

0 commit comments

Comments
 (0)