Skip to content

Commit b6facb8

Browse files
Merge pull request #3885 from SciML/fixori
Fix orientation getter
2 parents defd9e6 + 975ba6c commit b6facb8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/systems/connectors.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,7 @@ abstract type FrameOrientation end
343343

344344
"Return orientation object of a multibody frame."
345345
function ori(sys)
346-
val = getmetadata(sys, FrameOrientation, nothing)
347-
if val === nothing
348-
error("System $(sys.name) does not have an orientation object.")
349-
end
346+
getmetadata(sys, FrameOrientation, nothing)
350347
end
351348

352349
"""

0 commit comments

Comments
 (0)