Skip to content

Commit

Permalink
[godot] Should close #2514, needs testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed May 2, 2024
1 parent 04c132f commit a228adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-godot/spine_godot/SpineSlotNode.cpp
Expand Up @@ -101,7 +101,7 @@ void SpineSlotNode::_notification(int what) {
void SpineSlotNode::_get_property_list(List<PropertyInfo> *list) const {
Vector<String> slot_names;
SpineSprite *sprite = cast_to<SpineSprite>(get_parent());
if (sprite) sprite->get_skeleton_data_res()->get_slot_names(slot_names);
if (sprite && sprite->get_skeleton_data_res().is_valid()) sprite->get_skeleton_data_res()->get_slot_names(slot_names);
else
slot_names.push_back(slot_name);
auto element = list->front();
Expand Down

0 comments on commit a228adf

Please sign in to comment.