MCPcopy Create free account
hub / github.com/begla/Intrinsic / onDestroyResource

Method onDestroyResource

IntrinsicEd/src/IntrinsicEdManagerWindowBase.cpp:226–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void IntrinsicEdManagerWindowBase::onDestroyResource()
227{
228 Dod::Ref resource = _itemToResourceMapping[_ui.resourceView->currentItem()];
229
230 if (resource.isValid())
231 {
232 if (_resourceManagerEntry.destroyResourcesFunction)
233 _resourceManagerEntry.destroyResourcesFunction({resource});
234 if (_resourceManagerEntry.destroyFunction)
235 _resourceManagerEntry.destroyFunction(resource);
236
237 onPopulateResourceTree();
238
239 _ui.propertyView->clearPropertySet();
240 _ui.propertyView->clearAndUpdatePropertyView();
241 }
242}
243
244void IntrinsicEdManagerWindowBase::onSaveManager()
245{

Callers

nothing calls this directly

Calls 3

clearPropertySetMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected