Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/kotlin/assimp/Importer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ constructor() {

// Get file size for progress handler
val fileSize = ioSystem.open(file).length.i
ioSystem.close()

// Dispatch the reading to the worker class for this format
val desc = imp.info
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/assimp/format/obj/ObjFileImporter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class ObjFileImporter : BaseImporter() {

// And create the proper return structures out of it
createDataFromImport(parser.model, scene, ioSystem)

ioSystem.close()
}

/** Create the data from parsed obj-file */
Expand Down