浏览代码

Merge branch '3.7' into 3.8-beta

badlogic 6 年之前
父节点
当前提交
cd52ff6d58
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      spine-lua/SkeletonJson.lua

+ 5 - 1
spine-lua/SkeletonJson.lua

@@ -166,7 +166,11 @@ function SkeletonJson.new (attachmentLoader)
 				if not data.target then error("Target bone not found: " .. targetName) end
 				if not data.target then error("Target bone not found: " .. targetName) end
 
 
 				data.mix = getValue(constraintMap, "mix", 1)
 				data.mix = getValue(constraintMap, "mix", 1)
-				if constraintMap["bendPositive"] == nil or constraintMap["bendPositive"] == false then data.bendDirection = -1 else data.bendDirection = 1 end
+				if constraintMap["bendPositive"] == nil or constraintMap["bendPositive"] == true then
+          data.bendDirection = 1
+        else
+          data.bendDirection = -1
+        end
 				if constraintMap["compress"] == nil or constraintMap["compress"] == false then data.compress = false else data.compress = true end
 				if constraintMap["compress"] == nil or constraintMap["compress"] == false then data.compress = false else data.compress = true end
 				if constraintMap["stretch"] == nil  or constraintMap["stretch"] == false then data.stretch = false else data.stretch = true end
 				if constraintMap["stretch"] == nil  or constraintMap["stretch"] == false then data.stretch = false else data.stretch = true end
 				if constraintMap["uniform"] == nil or  constraintMap["uniform"] == false then data.uniform = false else data.uniform = true end
 				if constraintMap["uniform"] == nil or  constraintMap["uniform"] == false then data.uniform = false else data.uniform = true end