godot-jigglebones icon indicating copy to clipboard operation
godot-jigglebones copied to clipboard

skeleton var is returning null even if you put jigglebone as a child

Open Crogarox opened this issue 4 years ago • 3 comments

onready var skeleton : Skeleton = get_parent() returns null even if you put it as the child node. image

Crogarox avatar Nov 12 '21 19:11 Crogarox

Reloading the scene fixes it, but now I get this error. scene/3d/skeleton.cpp:381 - Index p_bone = -1 is out of bounds (bones.size() = 11).

Crogarox avatar Nov 12 '21 19:11 Crogarox

For some reason the 0th index is read as index -1, I think godot on the c++ side count is off by 1.

Crogarox avatar Nov 12 '21 19:11 Crogarox

Line 14 doesn't run properly in tool mode and isn't in the original repository. You could try disabling tool mode. Other changes you've introduced may be causing your other errors.

You can try my fork which supports collision, disables tool mode, and many other changes. https://github.com/tinmanjuggernaut/godot-jigglebones

TokisanGames avatar Nov 27 '21 20:11 TokisanGames