disabled sending grid elements, disabled element change subscription on new element event
This commit is contained in:
+5
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user