From 7ee0ccbcf3b47e521514c1fbd3feb2c5a65698ec Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Thu, 5 Mar 2020 07:40:46 +0800 Subject: [PATCH] PartDesign: remove SubShapeBinder.Support hidden status Change Immutable status to ReadOnly, which makes it easy to set value in script, but still block editing in property view by default. This is to discourage user editing support using property editor, because SubShapeBinder requires relative link correction. --- src/Mod/PartDesign/App/ShapeBinder.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/App/ShapeBinder.cpp b/src/Mod/PartDesign/App/ShapeBinder.cpp index 5dbf6b0a03..e49164f7bf 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.cpp +++ b/src/Mod/PartDesign/App/ShapeBinder.cpp @@ -276,9 +276,8 @@ PROPERTY_SOURCE(PartDesign::SubShapeBinder, Part::Feature) SubShapeBinder::SubShapeBinder() { - ADD_PROPERTY_TYPE(Support, (0), "",(App::PropertyType)(App::Prop_Hidden|App::Prop_None), - "Support of the geometry"); - Support.setStatus(App::Property::Immutable,true); + ADD_PROPERTY_TYPE(Support, (0), "",(App::PropertyType)(App::Prop_None), "Support of the geometry"); + Support.setStatus(App::Property::ReadOnly, true); ADD_PROPERTY_TYPE(Fuse, (false), "Base",App::Prop_None,"Fuse solids from bound shapes"); ADD_PROPERTY_TYPE(MakeFace, (true), "Base",App::Prop_None,"Create face using wires from bound shapes"); ADD_PROPERTY_TYPE(ClaimChildren, (false), "Base",App::Prop_Output,"Claim linked object as children");