Skip to content

Commit

Permalink
Delete functions in 3mf files
Browse files Browse the repository at this point in the history
  • Loading branch information
3dJan committed Oct 16, 2024
1 parent ee5a8a8 commit 0e27e96
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion gladius/src/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ namespace gladius

void Document::loadImpl(const std::filesystem::path & filename)
{
auto computeToken = m_core->requestComputeToken();
auto computeToken = m_core->waitForComputeToken();
m_buildItems.clear();

resetGeneratorContext();
Expand Down Expand Up @@ -691,4 +691,24 @@ namespace gladius
// auto * res = getGeneratorContext().resourceManager.getResourcePtr(key);
// TODO: Implement
}

void Document::deleteFunction(ResourceId id)

Check failure on line 695 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'deleteFunction': is not a member of 'gladius::Document'
{
m_assembly->deleteModel(id);

Check failure on line 697 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'm_assembly': undeclared identifier

if (m_3mfmodel)

Check failure on line 699 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'm_3mfmodel': undeclared identifier
{
// NOTE: Keep in mind that id is a ModelResourceID, no a UniqueResourceID
auto resIter = m_3mfmodel->GetResources();

Check failure on line 702 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'm_3mfmodel': undeclared identifier
while (resIter->MoveNext())

Check failure on line 703 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'resIter': cannot be used before it is initialized
{
auto resource = resIter->GetCurrent();
if (resource->GetModelResourceID() == id)

Check failure on line 706 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'resource': cannot be used before it is initialized
{
m_3mfmodel->RemoveResource(resource);

Check failure on line 708 in gladius/src/Document.cpp

View workflow job for this annotation

GitHub Actions / build (windows-latest, Release, cl)

'm_3mfmodel': undeclared identifier
break;
}
}
}
}
}

0 comments on commit 0e27e96

Please sign in to comment.