vtk3DSImporter Causes Crash with Some Models
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
- The importer assumes that a material referenced in the 3DS file actually exists. If it does not, then the importer accesses a null pointer.
- When checking for "bad" characters in an object name (cleanup_name function), the characters need to be cast to unsigned char so the ctype macros (isdigit, isalnum, etc.) do not assert.
Attached is the 'diff' of Hybrid/vtk3dsimporter.cxx that implements the fixes.