Fix error in console if you have 0 bone attachments in the ProjectSettings array.

This commit is contained in:
Relintai 2020-06-20 15:37:00 +02:00
parent 94e9a2c02e
commit 927e1d5b14

View File

@ -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(",");