From 2d531cc21bc527aefe275c18cd852934c38ec32b Mon Sep 17 00:00:00 2001 From: marioalexis Date: Fri, 7 Nov 2025 10:22:46 -0300 Subject: [PATCH] Fem: Allow clipping plane in edit mode --- src/Mod/Fem/femcommands/commands.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Mod/Fem/femcommands/commands.py b/src/Mod/Fem/femcommands/commands.py index bf0fb7c1f1..3c7e3b0bfc 100644 --- a/src/Mod/Fem/femcommands/commands.py +++ b/src/Mod/Fem/femcommands/commands.py @@ -107,6 +107,11 @@ class _ClippingPlaneAdd(CommandManager): ) self.is_active = "with_document" + def GetResources(self): + resources = super().GetResources() + resources["CmdType"] = "ForEdit | Alter3DView" + return resources + def Activated(self): from pivy import coin from femtools.femutils import getBoundBoxOfAllDocumentShapes @@ -163,6 +168,11 @@ class _ClippingPlaneRemoveAll(CommandManager): ) self.is_active = "with_document" + def GetResources(self): + resources = super().GetResources() + resources["CmdType"] = "ForEdit | Alter3DView" + return resources + def Activated(self): line1 = "for node in list(sg.getChildren()):\n" line2 = " if isinstance(node, coin.SoClipPlane):\n"