Skip to content
This repository was archived by the owner on Jul 21, 2019. It is now read-only.
This repository was archived by the owner on Jul 21, 2019. It is now read-only.

physics are not exported #26

@Hogarth-MMD

Description

@Hogarth-MMD

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
exporter__init__.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():

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions