浏览代码

Merge pull request #107546 from demolke/bone

Fix editing/removal of bone meta
Rémi Verschelde 2 月之前
父节点
当前提交
019ab8745f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/plugins/skeleton_3d_editor_plugin.cpp

+ 2 - 2
editor/plugins/skeleton_3d_editor_plugin.cpp

@@ -156,7 +156,7 @@ void BonePropertiesEditor::_meta_changed(const String &p_property, const Variant
 	}
 
 	String key = p_property.get_slicec('/', 3);
-	if (!skeleton->has_bone_meta(1, key)) {
+	if (!skeleton->has_bone_meta(bone, key)) {
 		return;
 	}
 
@@ -180,7 +180,7 @@ void BonePropertiesEditor::_meta_deleted(const String &p_property) {
 	}
 
 	String key = p_property.get_slicec('/', 3);
-	if (!skeleton->has_bone_meta(1, key)) {
+	if (!skeleton->has_bone_meta(bone, key)) {
 		return;
 	}