mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 09:38:44 +08:00
[lua] Fixed parsing of IK constraint bend direction. Closes #1357.
This commit is contained in:
parent
4d2e813967
commit
457447b025
@ -164,7 +164,11 @@ function SkeletonJson.new (attachmentLoader)
|
||||
if not data.target then error("Target bone not found: " .. targetName) end
|
||||
|
||||
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["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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user