Skip to content

Commit 019ab87

Browse files
committed
Merge pull request #107546 from demolke/bone
Fix editing/removal of bone meta
2 parents b2b449d + 80aada7 commit 019ab87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editor/plugins/skeleton_3d_editor_plugin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void BonePropertiesEditor::_meta_changed(const String &p_property, const Variant
156156
}
157157

158158
String key = p_property.get_slicec('/', 3);
159-
if (!skeleton->has_bone_meta(1, key)) {
159+
if (!skeleton->has_bone_meta(bone, key)) {
160160
return;
161161
}
162162

@@ -180,7 +180,7 @@ void BonePropertiesEditor::_meta_deleted(const String &p_property) {
180180
}
181181

182182
String key = p_property.get_slicec('/', 3);
183-
if (!skeleton->has_bone_meta(1, key)) {
183+
if (!skeleton->has_bone_meta(bone, key)) {
184184
return;
185185
}
186186

0 commit comments

Comments
 (0)