part deletion handling

-remove everxthing that belongs to a part on deletion
-disallow to delete the origin by the user and only remove it when Part is being deleted
This commit is contained in:
Stefan Tröger
2015-07-08 07:06:49 +02:00
parent 54dfe5cbff
commit 1ebe3e729c
13 changed files with 455 additions and 11 deletions

View File

@@ -42,7 +42,10 @@ PROPERTY_SOURCE(App::Plane, App::GeoFeature)
Plane::Plane(void)
{
ADD_PROPERTY(PlaneType,(""));
//placement can't be changed
Placement.StatusBits.set(3, true);
//plane can not be deleted by user
StatusBits.set(ObjectStatus::Undeletable, true);
}