- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing an import plugin, and we import our proprietary format for the whole scene, and then import a different proprietary format for debug visualization (e.g. the visibility level of each triangle). This all works fine.
We are now trying to export this combined scene as an FBX, but with all the hidden geometry being deleted. So, as we load the visualization, we examine each node as to whether it is hidden or not, and try to delete it (or colorize, or hide, depending). The issue is all attempts to delete nodes result in a crash.
I've tried DeleteMe(), Delete(), Detach() then delete to no avail. Everything I've found on the web implies DeleteMe() is the call to use as this handles detaching, deleting, and undo. This happens on the first item from the root node.
The crash is: File: s:\3ds_max_2016_di\src\3dswin\src\core\ref.cpp
Line: 1069
Function: ReferenceTarget::DeleteAllRefsToMe
Expression: currentRefMaker == NULL || numOrigRefs != currentRefMaker->NumRefs() || currentRefMaker->GetReference(which) == NULL
Cheers
John
Solved! Go to Solution.