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:
PaddleStroke
2026-01-07 09:21:58 +01:00
committed by GitHub
parent 5e482a8310
commit 8bfbeac40f

View File

@@ -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;
}