Part: add datum objects and commands to create them.

This commit is contained in:
PaddleStroke
2024-09-20 10:46:01 +02:00
parent 655ae579ed
commit 19ef989300
21 changed files with 626 additions and 64 deletions

View File

@@ -156,9 +156,9 @@ void StdCmdVarSet::activated(int iMsg)
// add the varset to a group if it is selected
auto sels = Selection().getSelectionEx(nullptr, App::DocumentObject::getClassTypeId(),
ResolveMode::OldStyleElement, true);
ResolveMode::OldStyleElement, true);
if (sels.size() == 1) {
App::DocumentObject *obj = sels[0].getObject();
App::DocumentObject* obj = sels[0].getObject();
auto group = obj->getExtension<App::GroupExtension>();
if (group) {
Gui::Document* docGui = Application::Instance->activeDocument();