PartDesign: Enable drag and drop of shapeBinders (#25264)
* PartDesign: Enable drag and drop of shapeBinders * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <Mod/PartDesign/App/DatumCS.h>
|
||||
#include <Mod/PartDesign/App/FeatureSketchBased.h>
|
||||
#include <Mod/PartDesign/App/FeatureBase.h>
|
||||
#include <Mod/PartDesign/App/ShapeBinder.h>
|
||||
|
||||
#include "ViewProviderBody.h"
|
||||
#include "Utils.h"
|
||||
@@ -446,6 +447,9 @@ bool ViewProviderBody::canDropObject(App::DocumentObject* obj) const
|
||||
else if (obj->isDerivedFrom<App::LocalCoordinateSystem>()) {
|
||||
return !obj->isDerivedFrom<App::Origin>();
|
||||
}
|
||||
else if (obj->isDerivedFrom<PartDesign::SubShapeBinder>()) {
|
||||
return true;
|
||||
}
|
||||
else if (obj->isDerivedFrom<Part::Part2DObject>()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user