mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-20 17:14:44 +01:00
Fix error in console if you have 0 bone attachments in the ProjectSettings array.
This commit is contained in:
parent
94e9a2c02e
commit
927e1d5b14
@ -517,6 +517,10 @@ bool CharacterSkeleton3D::_get(const StringName &p_name, Variant &r_ret) const {
|
||||
return false;
|
||||
}
|
||||
void CharacterSkeleton3D::_get_property_list(List<PropertyInfo> *p_list) const {
|
||||
if (ESS::get_singleton()->skeletons_bone_attachments_count() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
String bones = ESS::get_singleton()->skeletons_bone_attachment_index_get(_entity_type);
|
||||
int slicec = bones.get_slice_count(",");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user