Skip to content

Commit 372565f

Browse files
committed
changes to reviewers comments
1 parent d3f64e0 commit 372565f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Composition/joints/Revolute.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ end
7979
Revolute(; kwargs...) = Revolute{Float64}(; kwargs...)
8080

8181

82-
function revertRevoluteKind!(newChild::Object3D{F}) where F <: Modia3D.VarFloatType
83-
newChild.joint.obj1, newChild.joint.obj2 = newChild.joint.obj2, newChild.joint.obj1
84-
newChild.joint.eAxis = -newChild.joint.eAxis
82+
function revertRevoluteKind!(joint::Revolute{F}) where F <: Modia3D.VarFloatType
83+
joint.obj1, joint.obj2 = joint.obj2, joint.obj1
84+
joint.eAxis = -joint.eAxis
8585
return nothing
8686
end

src/Composition/joints/joints.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,8 @@ end
863863

864864
function jointSpecificTreatment!(oldChild::Object3D{F}, newChild::Object3D{F})::Nothing where F <: Modia3D.VarFloatType
865865
if newChild.jointKind == Modia3D.Composition.RevoluteKind
866-
revertRevoluteKind!(newChild)
866+
joint::Revolute{F} = newChild.joint
867+
revertRevoluteKind!(joint)
867868
return nothing
868869
elseif newChild.jointKind == Modia3D.Composition.FixKind
869870
# nothing needs to be done here

0 commit comments

Comments
 (0)