Core: Add VarSets to Groups

If a Group is selected, add the VarSet to the group.
This commit is contained in:
Pieter Hijma
2024-05-19 15:39:46 +02:00
parent 5670777eeb
commit ec841ed6d4
3 changed files with 25 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#include <App/Document.h>
#include <App/VarSet.h>
#include <App/Origin.h>
#include <Base/Placement.h>
@@ -227,10 +228,12 @@ bool Body::isAllowed(const App::DocumentObject *obj)
// TODO Shouldn't we replace it with Sketcher::SketchObject? (2015-08-13, Fat-Zer)
obj->isDerivedFrom<Part::Part2DObject>() ||
obj->isDerivedFrom<PartDesign::ShapeBinder>() ||
obj->isDerivedFrom<PartDesign::SubShapeBinder>()
obj->isDerivedFrom<PartDesign::SubShapeBinder>() ||
// TODO Why this lines was here? why should we allow anything of those? (2015-08-13, Fat-Zer)
//obj->isDerivedFrom<Part::FeaturePython>() // trouble with this line on Windows!? Linker fails to find getClassTypeId() of the Part::FeaturePython...
//obj->isDerivedFrom<Part::Feature>()
// allow VarSets for parameterization
obj->isDerivedFrom<App::VarSet>()
);
}