Skip to content

Commit 9188e01

Browse files
committed
fix release issues
1 parent 2b8e4b2 commit 9188e01

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

crates/bevy_animation_graph/src/core/context/pose_fallback.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ impl PoseFallbackContext<'_> {
8181
}
8282
}
8383

84-
#[cfg(feature = "physics_avian")]
8584
pub enum RootOffsetResult {
8685
FromRigidbody(Entity, Transform),
8786
FromRoot(Transform),

crates/bevy_animation_graph/src/core/plugin.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,10 @@ impl Plugin for AnimationGraphPlugin {
150150
.in_set(AnimationGraphSet::PrePhysics),
151151
);
152152

153+
#[cfg(feature = "physics_avian")]
153154
app.add_systems(
154155
self.physics_schedule,
155-
(
156-
#[cfg(feature = "physics_avian")]
157-
read_back_poses_avian,
158-
)
156+
read_back_poses_avian
159157
.chain()
160158
.in_set(AnimationGraphSet::PostPhysics),
161159
);

crates/bevy_animation_graph/src/core/ragdoll/spawning.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
use bevy::{
2-
ecs::{entity::Entity, system::Commands},
3-
math::Isometry3d,
4-
platform::collections::HashMap,
5-
prelude::default,
6-
reflect::Reflect,
7-
transform::components::Transform,
8-
};
1+
use bevy::{ecs::entity::Entity, platform::collections::HashMap, reflect::Reflect};
2+
#[cfg(feature = "physics_avian")]
3+
use bevy::{ecs::system::Commands, math::Isometry3d};
94

10-
use crate::core::ragdoll::definition::{BodyId, ColliderId, JointId, JointVariant, Ragdoll};
5+
#[cfg(feature = "physics_avian")]
6+
use crate::core::ragdoll::definition::Ragdoll;
7+
use crate::core::ragdoll::definition::{BodyId, ColliderId, JointId};
118

129
#[derive(Reflect)]
1310
pub struct SpawnedRagdoll {
@@ -36,7 +33,7 @@ pub fn spawn_ragdoll_avian(
3633
commands: &mut Commands,
3734
) -> SpawnedRagdoll {
3835
use avian3d::prelude::{AngleLimit, CollisionLayers, RevoluteJoint, RigidBody, SphericalJoint};
39-
use bevy::ecs::name::Name;
36+
use bevy::{ecs::name::Name, transform::components::Transform, utils::default};
4037

4138
let root = commands
4239
.spawn((
@@ -103,7 +100,7 @@ pub fn spawn_ragdoll_avian(
103100
}
104101

105102
for joint in ragdoll.joints.values() {
106-
use crate::core::ragdoll::definition::JointLabel;
103+
use crate::core::ragdoll::definition::{JointLabel, JointVariant};
107104

108105
let joint_entity = match &joint.variant {
109106
JointVariant::Spherical(spherical_joint) => {

0 commit comments

Comments
 (0)