From 975ba6cecec8fc5a0ef42f44b6d64c179e95f9ab Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Mon, 11 Aug 2025 09:03:55 +0200 Subject: [PATCH] Fix orientation getter --- src/systems/connectors.jl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/systems/connectors.jl b/src/systems/connectors.jl index f63c10e8a1..4e0c2adb14 100644 --- a/src/systems/connectors.jl +++ b/src/systems/connectors.jl @@ -343,10 +343,7 @@ abstract type FrameOrientation end "Return orientation object of a multibody frame." function ori(sys) - val = getmetadata(sys, FrameOrientation, nothing) - if val === nothing - error("System $(sys.name) does not have an orientation object.") - end + getmetadata(sys, FrameOrientation, nothing) end """