From e681dc3771ee67a44654ac29517f48a4462ad74e Mon Sep 17 00:00:00 2001 From: balazs-bamer Date: Sun, 8 Feb 2015 17:39:55 +0100 Subject: [PATCH] Unhide surface props and set the filltype to read-only in data tab I made the surface property (FillType and boundary) default again. Status bit 2 is set on fill type to hide it in data tab. --- src/Mod/Surface/App/FeatureBSurf.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Surface/App/FeatureBSurf.cpp b/src/Mod/Surface/App/FeatureBSurf.cpp index 4b0adfdaba..fd4c665464 100644 --- a/src/Mod/Surface/App/FeatureBSurf.cpp +++ b/src/Mod/Surface/App/FeatureBSurf.cpp @@ -49,8 +49,9 @@ const char* BSurf::FillTypeEnums[] = {"Invalid", "Sretched", "Coons", "Curved BSurf::BSurf(): Feature() { - ADD_PROPERTY_TYPE(FillType, ((long)0), "Surface", App::Prop_Hidden, "Boundary of the surface"); - ADD_PROPERTY_TYPE(BoundaryList, (0,"Dummy"), "Surface", App::Prop_Hidden, "Boundary of the surface"); + ADD_PROPERTY(FillType, ((long)0)); + ADD_PROPERTY(BoundaryList, (0, "Dummy")); + FillType.StatusBits |= 4; // read-only in property editor FillType.setEnums(FillTypeEnums); }