ousttrue / pymeshio

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

physics are not exported #26

Open Hogarth-MMD opened 9 years ago

Hogarth-MMD commented 9 years ago

Pymeshio does not re-export physics. I have made a bug fix for this: Googleが翻訳します: Pymeshio再輸出しない物理学を。私はこのためにバグ修正を行いました。

4 files are edited in this bug fix: 4ファイルは、このバグ修正で編集されています。 export_pmd.py export_pmx.py exporterinit.py oneskinmesh.py

export_pmd.py line 300
        name=obj[bl.RIGID_NAME] if bl.RIGID_NAME in obj.keys() else obj.name

export_pmx.py line 345
        name=obj[bl.RIGID_NAME] if bl.RIGID_NAME in obj.keys() else obj.name

exporter\__init__.py line 43
        for value in object_node_map.values(): 
            self.oneSkinMesh.build(value)

    #self.oneSkinMesh.build(self.root)

oneskinmesh.py lines 79 and 80 (If these 2 lines are not commented out, 3 copies of every rigid body and joint/constraint will be exported)
        # for child in node.children:
            # self.build(child)

oneskinmesh.py line 337 and 339
        if bl.RIGID_SHAPE_TYPE in obj.keys():
        if bl.CONSTRAINT_A in obj.keys():

oneskinmesh.py lines 456 and 461
        if not bl.RIGID_SHAPE_TYPE in obj.keys():
        if not bl.CONSTRAINT_A in obj.keys():