monkeyman192 / NMSDK

Custom Model importer for NMS
https://monkeyman192.github.io/NMSDK/
29 stars 9 forks source link

[BUG]Importing multiple scenes in one session sets the export folder path to the one of the last imported scene #92

Open WinderTP opened 1 year ago

WinderTP commented 1 year ago

Describe the bug When importing a scene after another scene that's imported beforehand, the export folder path when checking "Preserve Node Info" becomes the one from the last imported scene, and not of the one being exported (top scene).

Name value under TkSceneNodeData and GEOMETRY path also changes in the mbin/exml, causing possible instability since the geometry path now links to nothing.

To Reproduce

  1. Import a scene
  2. Import another scene from another folder
  3. Make the second scene a child of the first
  4. Export with "Preserve Node Info" checked

Screenshots

  1. Exporting in Blender image
  2. Different Name and Geometry path in exml after exporting (Left: vanilla; Right: exported via NMSDK) image

Additional context We can still set the path manually after checking Preserve Node Info so it can be remedied in NMSDK as of now