Skip to content

Commit c86755b

Browse files
authored
Merge pull request #106 from SlimeYummy/issue/compile-demo-failed
compile demo failed
2 parents 30f1ee7 + 3087fd5 commit c86755b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

demo/src/two_bone_ik.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ impl OzzExample for OzzTwoBoneIK {
129129
let mut locals_mut = self.locals.mut_buf().unwrap();
130130

131131
let idx = start_joint as usize;
132-
let quat = locals_mut[idx / 4].rotation.col(idx & 3) * self.ik_job.start_joint_correction();
133-
locals_mut[idx / 4].rotation.set_col(idx & 3, quat);
132+
let quat = locals_mut[idx / 4].rotation.quat(idx & 3) * self.ik_job.start_joint_correction();
133+
locals_mut[idx / 4].rotation.set_quat(idx & 3, quat);
134134

135135
let idx = mid_joint as usize;
136-
let quat = locals_mut[idx / 4].rotation.col(idx & 3) * self.ik_job.mid_joint_correction();
137-
locals_mut[idx / 4].rotation.set_col(idx & 3, quat);
136+
let quat = locals_mut[idx / 4].rotation.quat(idx & 3) * self.ik_job.mid_joint_correction();
137+
locals_mut[idx / 4].rotation.set_quat(idx & 3, quat);
138138
}
139139

140140
self.l2m_job2.set_from(start_joint as i32);

0 commit comments

Comments
 (0)