Core: Tree: Allow reordering in root and groups allowing it (parts, groups
This commit is contained in:
committed by
Chris Hennes
parent
cc5d4146cf
commit
fec1a86e30
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user