ousttrue / pymeshio

3d model reader/writer for python
http://pypi.python.org/pypi/pymeshio/
92 stars 26 forks source link

[Question] What's triggering the bug in the screenshot? #20

Closed ShadowKyogre closed 9 years ago

ShadowKyogre commented 9 years ago

Hey there. One of my friends uses quite a lot. I can't seem to figure out what's causing the error in this screenshot: unknown_vertex_key_273_to_268


For comparison: http://www.mediafire.com/download/6jhk5mwp8x3vkbz/EXPORT+TEST.rar - To get the texture on the model to show:

  1. Go to the material in PMD editor
  2. Click the sky blue button in the texture notes box
  3. Load texture

There're some other bugs that the model triggers, but that's probably best for another issue.


http://www.mediafire.com/download/8hwzoyyr8acswya/Miku+Original.rar - This is the model that causes the crash of the plugin.


The testing environment that my friend rar'd up to help make the problem reproducible (it uses 2.7.8 of the plugin, but the 2.7.9 changes on github don't address any of the PMD/PMX exporting issues:

ousttrue commented 9 years ago

I have confirmed the problem . First aid was as follows .

vertexarray.py

    def getMappedIndex(self, obj_name, base_index):
        key=VertexKey(self.objectMap[obj_name], base_index)
        if key in self.vertexMap:
            return self.vertexMap[key]
        return {}

I will release a modified version later .

ousttrue commented 9 years ago

upload 2.7.10

https://pypi.python.org/pypi/pymeshio