Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn navmesh via addObject from another layer crashes blender #926

Closed
Aiavaso opened this issue Nov 6, 2018 · 2 comments
Closed

spawn navmesh via addObject from another layer crashes blender #926

Aiavaso opened this issue Nov 6, 2018 · 2 comments

Comments

@Aiavaso
Copy link

Aiavaso commented Nov 6, 2018

Title says everything,if i try spawn navmesh via addObject from another hidden layer to active layer it crashes blender

on bge it works fine,but in upbge it just crashes

UpbgeNavmeshSpawnCrash.zip

@lordloki
Copy link
Member

lordloki commented Nov 6, 2018

I confirm the crash.
The report is:
image
image

panzergame added a commit that referenced this issue Nov 8, 2018
The duplication of navigation mesh was processing a regeneration of the mesh
and a registration to the scene in the function BuildNavMesh. But the caller
(ProcessReplica) is on an object without a scene graph node and so an access
to its scene, this mean that the try to register the nav mesh in the scene
obstacle simulation failed in BuildNavMesh because the scene is unreachable.

To fix this issue the management of obstacle simulation for nav mesh and
obstacles is fully moved into KX_Scene::AddNodeReplicaObject after the new
object ensure a scene graph node.

Fix issue #926.
@panzergame
Copy link
Contributor

Fixed in b387a7f

lordloki pushed a commit that referenced this issue Nov 30, 2018
The duplication of navigation mesh was processing a regeneration of the mesh
and a registration to the scene in the function BuildNavMesh. But the caller
(ProcessReplica) is on an object without a scene graph node and so an access
to its scene, this mean that the try to register the nav mesh in the scene
obstacle simulation failed in BuildNavMesh because the scene is unreachable.

To fix this issue the management of obstacle simulation for nav mesh and
obstacles is fully moved into KX_Scene::AddNodeReplicaObject after the new
object ensure a scene graph node.

Fix issue #926.
youle31 pushed a commit that referenced this issue May 26, 2019
The duplication of navigation mesh was processing a regeneration of the mesh
and a registration to the scene in the function BuildNavMesh. But the caller
(ProcessReplica) is on an object without a scene graph node and so an access
to its scene, this mean that the try to register the nav mesh in the scene
obstacle simulation failed in BuildNavMesh because the scene is unreachable.

To fix this issue the management of obstacle simulation for nav mesh and
obstacles is fully moved into KX_Scene::AddNodeReplicaObject after the new
object ensure a scene graph node.

Fix issue #926.
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

No branches or pull requests

3 participants