Skip to content

Making a CSG Mesh visible again crashes Godot 4.2 beta4 #84304

Closed
@bsil78

Description

@bsil78

Godot version

4.2-beta4

System information

Windows 10 - Godot 4.2 beta4 - NVIDIA GForce GTX 970 - Forward+

Issue description

Switching visibility of a CSG Mesh back to visible makes Godot to crash.

This was not the case in beta3 or previous ones.

It could be related to #84174 of @jsjtxietian (merged by @akien-mga) as it touches modules/csg/csg_shape.cpp.

Steps to reproduce

In a simple 3D, adding any CSG mesh, hiding node, then showing it back crashes editor.

In example project, I put an editor script in order to test by script ; here is awaited output :

hiding : MeshInstance3D OK
showing : MeshInstance3D OK
hiding : CSGMesh3D OK
showing : CSGMesh3D OK
hiding : CSGBox3D OK
showing : CSGBox3D OK

Minimal reproduction project

4.2-beta4-csg-mesh-visbility-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions