From 5b0273caf5c5f80df349b667d3620686f815f81f Mon Sep 17 00:00:00 2001 From: visose Date: Mon, 1 Aug 2022 15:43:06 +0100 Subject: [PATCH] Fix contains commands msg --- src/Robots/Targets/CartesianTarget.cs | 4 ++-- src/Robots/Targets/JointTarget.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Robots/Targets/CartesianTarget.cs b/src/Robots/Targets/CartesianTarget.cs index b76c9e3..4695a2f 100644 --- a/src/Robots/Targets/CartesianTarget.cs +++ b/src/Robots/Targets/CartesianTarget.cs @@ -1,4 +1,4 @@ -using Rhino.Geometry; +using Rhino.Geometry; namespace Robots; @@ -32,7 +32,7 @@ public override string ToString() string tool = $", {Tool}"; string speed = $", {Speed}"; string zone = $", {Zone}"; - string commands = Command is not null ? ", Contains commands" : ""; + string commands = Command != Command.Default ? ", Contains commands" : ""; string external = External.Length > 0 ? $", {External.Length.ToString():0} external axes" : ""; return $"Target ({type}{motion}{configuration}{frame}{tool}{speed}{zone}{commands}{external})"; } diff --git a/src/Robots/Targets/JointTarget.cs b/src/Robots/Targets/JointTarget.cs index 3e5dbd4..f9cdad7 100644 --- a/src/Robots/Targets/JointTarget.cs +++ b/src/Robots/Targets/JointTarget.cs @@ -61,7 +61,7 @@ public override string ToString() string tool = $", {Tool}"; string speed = $", {Speed}"; string zone = $", {Zone}"; - string commands = Command is not null ? ", Contains commands" : ""; + string commands = Command != Command.Default ? ", Contains commands" : ""; string external = External.Length > 0 ? $", {External.Length.ToString():0} external axes" : ""; return $"Target ({type}{tool}{speed}{zone}{commands}{external})"; }