disabled sending grid elements, disabled element change subscription on new element event

This commit is contained in:
David Kekesi
2024-11-07 11:05:16 +01:00
parent 664fdaf39a
commit ea103f3849
2 changed files with 7 additions and 1 deletions
@@ -110,6 +110,11 @@ namespace {
return std::make_unique<Slab>(elementData, tableID);
case API_WallID:
return std::make_unique<Wall>(elementData, tableID);
case API_ObjectID: {
// POC: change this case once we are ready to convert Grid Elements
if (elementData.header.type.variationID == APIVarId_GridElement)
return nullptr;
}
default:
return std::make_unique<GenericModelElement>(elementData, tableID);
}
@@ -31,7 +31,8 @@ namespace {
switch (elemType->notifID)
{
case APINotifyElement_New: {
ACAPI_Element_AttachObserver(elemType->elemHead.guid);
// POC: Put this back once we decide to use Object Tracking
// ACAPI_Element_AttachObserver(elemType->elemHead.guid);
addon()->publishExternal(ElementEvent{newElem, ElementID{elemType->elemHead.guid}});
} break;
case APINotifyElement_Change: {