Skip to content

2D skeleton causes engine crash #102054

Open
@gaoyan2659365465

Description

Tested versions

4.4 beta1

System information

Windows10 - Godot v4.4.beta1 - Vulkan(Forward+) - NVIDIA GetForce GTX960

Issue description

SkeletonModificationStack2D checked resource_local_to_scene properties, drag and drop to other scenarios to crash the engine.

I added a SkeletonModification2DTwoBoneIK and make it work

This problem was first discovered in Godot_v4.3-stable, I tried the latest version Godot4.4-beta1 and the problem still exists.

If I set the resource_local_to_scene property to false and drag and drop to a new scene, there will be a number of errors if I drag and drop two copies of the same skeleton:

ERROR: Drawing is only allowed inside this node's _draw(), functions connected to its draw signal, or when it receives NOTIFICATION_DRAW.

And the IK effect of both bones will be disturbed.

Steps to reproduce

1、Create an empty project
2、Create a new scene and save it. The type is Skeleton2D
3、Create two bones and add IK
4、Add SkeletonModificationStack2D and SkeletonModification2DTwoBoneIK
5、Check resource_local_to_scene
6、Drag and drop the scene to a new scene
7、Engine crash

Minimal reproduction project (MRP)

bug.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions