mirror of
https://github.com/godotengine/godot
synced 2024-09-15 22:10:09 +00:00
parent
435d50bf0f
commit
7715301c66
|
@ -241,7 +241,7 @@ int SkeletonModification2DLookAt::get_bone_index() const {
|
||||||
void SkeletonModification2DLookAt::set_bone_index(int p_bone_idx) {
|
void SkeletonModification2DLookAt::set_bone_index(int p_bone_idx) {
|
||||||
ERR_FAIL_COND_MSG(p_bone_idx < 0, "Bone index is out of range: The index is too low!");
|
ERR_FAIL_COND_MSG(p_bone_idx < 0, "Bone index is out of range: The index is too low!");
|
||||||
|
|
||||||
if (is_setup) {
|
if (is_setup && stack) {
|
||||||
if (stack->skeleton) {
|
if (stack->skeleton) {
|
||||||
ERR_FAIL_INDEX_MSG(p_bone_idx, stack->skeleton->get_bone_count(), "Passed-in Bone index is out of range!");
|
ERR_FAIL_INDEX_MSG(p_bone_idx, stack->skeleton->get_bone_count(), "Passed-in Bone index is out of range!");
|
||||||
bone_idx = p_bone_idx;
|
bone_idx = p_bone_idx;
|
||||||
|
|
Loading…
Reference in a new issue