瀏覽代碼

Added No bone set state in the IK

The problem is that initially the root bone was not set, and you didn't know that because the "no set" state was missing. Now I've added it. https://github.com/godotengine/godot-docs/issues/2333

(cherry picked from commit f65fde73dab73f9ba3c9f856785db251134ef1cc)
Andrea Catania 6 年之前
父節點
當前提交
3d74b1e2ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/animation/skeleton_ik.cpp

+ 1 - 1
scene/animation/skeleton_ik.cpp

@@ -335,7 +335,7 @@ void SkeletonIK::_validate_property(PropertyInfo &property) const {
 
 		if (skeleton) {
 
-			String names;
+			String names("--,");
 			for (int i = 0; i < skeleton->get_bone_count(); i++) {
 				if (i > 0)
 					names += ",";