From 0e8b78d2fb4e1b9cf566ae5e8e7944dff0950a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Sun, 10 May 2015 11:12:55 +0200 Subject: [PATCH] make bodies, origins, planes and lines unmovable --- src/App/Line.cpp | 1 + src/App/Origin.cpp | 2 +- src/App/Plane.cpp | 1 + src/Mod/PartDesign/App/Body.cpp | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App/Line.cpp b/src/App/Line.cpp index 83a367ac09..84b1ee964b 100644 --- a/src/App/Line.cpp +++ b/src/App/Line.cpp @@ -42,6 +42,7 @@ PROPERTY_SOURCE(App::Line, App::GeoFeature) Line::Line(void) { ADD_PROPERTY(LineType,("")); + Placement.StatusBits.set(3, true); } diff --git a/src/App/Origin.cpp b/src/App/Origin.cpp index 5d99520aad..6181ec5439 100644 --- a/src/App/Origin.cpp +++ b/src/App/Origin.cpp @@ -45,7 +45,7 @@ PROPERTY_SOURCE(App::Origin, App::GeoFeatureGroup) Origin::Origin(void) { - + Placement.StatusBits.set(3, true); } Origin::~Origin(void) diff --git a/src/App/Plane.cpp b/src/App/Plane.cpp index af4e537770..14614f7467 100644 --- a/src/App/Plane.cpp +++ b/src/App/Plane.cpp @@ -42,6 +42,7 @@ PROPERTY_SOURCE(App::Plane, App::GeoFeature) Plane::Plane(void) { ADD_PROPERTY(PlaneType,("")); + Placement.StatusBits.set(3, true); } diff --git a/src/Mod/PartDesign/App/Body.cpp b/src/Mod/PartDesign/App/Body.cpp index 3b043490e7..dc297bd8dd 100644 --- a/src/Mod/PartDesign/App/Body.cpp +++ b/src/Mod/PartDesign/App/Body.cpp @@ -53,6 +53,7 @@ PROPERTY_SOURCE(PartDesign::Body, Part::BodyBase) Body::Body() { + Placement.StatusBits.set(3, true); //ADD_PROPERTY(IsActive,(0)); }