mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[godot] Should close #2514, needs testing.
This commit is contained in:
parent
04c132f4af
commit
a228adf684
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user