Core: Tree: Allow reordering in root and groups allowing it (parts, groups

This commit is contained in:
PaddleStroke
2024-02-13 09:53:31 +01:00
committed by Chris Hennes
parent cc5d4146cf
commit fec1a86e30
8 changed files with 1038 additions and 746 deletions

View File

@@ -80,8 +80,8 @@ bool ViewProviderGroupExtension::extensionCanDropObject(App::DocumentObject* obj
auto* group = getExtendedViewProvider()->getObject()->getExtensionByType<App::GroupExtension>();
//we cannot drop thing of this group into it again
if (group->hasObject(obj))
//we cannot drop thing of this group into it again if it does not allow reorder
if (group->hasObject(obj) && !getExtendedViewProvider()->acceptReorderingObjects())
return false;
if (group->allowObject(obj))