Skip to content

Conversation

frozenbrain
Copy link
Contributor

Currently the exporter uses the id of the first parent of a mesh as its parentId when exporting it. This results in meshes having an incorrect parent and therefore incorrect positions and rotations in the scene.

In the example scene I attached to issue #247 the Outliner shows the correct object hierarchy:
image
The exporter however exports both cubes as children of group1:
image

After the changes in this PR both cubes are exported and grouped correctly:
image

@deltakosh deltakosh requested a review from noalak July 3, 2018 16:10
@rlouvat
Copy link
Contributor

rlouvat commented Jul 4, 2018

Hi,
I looked at your commit and it is all right for me.

@noalak noalak merged commit c069d25 into BabylonJS:master Jul 4, 2018
@noalak
Copy link
Contributor

noalak commented Jul 4, 2018

Updating dlls right now

@noalak
Copy link
Contributor

noalak commented Jul 4, 2018

@frozenbrain Thanks for your work!

@rlouvat rlouvat mentioned this pull request Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants