From 3f0dca6387e7493b96637c2f9a48ed5bb5d39d6e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 25 Aug 2018 11:09:15 +0200 Subject: [PATCH] avoid that Datum plane is always touched when automatically resizing it from within its own view provider --- src/Mod/PartDesign/App/DatumPlane.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/App/DatumPlane.cpp b/src/Mod/PartDesign/App/DatumPlane.cpp index a669b5150b..63d966388c 100644 --- a/src/Mod/PartDesign/App/DatumPlane.cpp +++ b/src/Mod/PartDesign/App/DatumPlane.cpp @@ -42,10 +42,14 @@ PROPERTY_SOURCE(PartDesign::Plane, Part::Datum) Plane::Plane() { - ADD_PROPERTY_TYPE(ResizeMode,(static_cast(0)), "Size", App::Prop_None, "Automatic or manual resizing"); + // These properties are only relevant for the visual appearance. + // Since they are getting changed from within its view provider + // their type is set to "Ouput" to avoid that they are marked as + // touched all the time. + ADD_PROPERTY_TYPE(ResizeMode,(static_cast(0)), "Size", App::Prop_Output, "Automatic or manual resizing"); ResizeMode.setEnums(ResizeModeEnums); - ADD_PROPERTY_TYPE(Length,(20), "Size", App::Prop_None, "Length of the plane"); - ADD_PROPERTY_TYPE(Width,(20), "Size", App::Prop_None, "Width of the plane"); + ADD_PROPERTY_TYPE(Length,(20), "Size", App::Prop_Output, "Length of the plane"); + ADD_PROPERTY_TYPE(Width,(20), "Size", App::Prop_Output, "Width of the plane"); Length.setReadOnly(true); Width.setReadOnly(true);