mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[spine-cpp] Closes #2225, incorrect integer division when reading AlphaTimeline frames.
This commit is contained in:
parent
a87776e8bd
commit
0042015e7c
@ -1010,7 +1010,7 @@ Animation *SkeletonBinary::readAnimation(const String &name, DataInput *input, S
|
|||||||
timeline->setFrame(frame, time, a);
|
timeline->setFrame(frame, time, a);
|
||||||
if (frame == frameLast) break;
|
if (frame == frameLast) break;
|
||||||
float time2 = readFloat(input);
|
float time2 = readFloat(input);
|
||||||
float a2 = readByte(input) / 255;
|
float a2 = readByte(input) / 255.0;
|
||||||
switch (readSByte(input)) {
|
switch (readSByte(input)) {
|
||||||
case CURVE_STEPPED:
|
case CURVE_STEPPED:
|
||||||
timeline->setStepped(frame);
|
timeline->setStepped(frame);
|
||||||
|
|||||||
44
spine-godot/.vscode/launch.json
vendored
44
spine-godot/.vscode/launch.json
vendored
@ -15,7 +15,19 @@
|
|||||||
"examples/01-helloworld/helloworld.tscn"
|
"examples/01-helloworld/helloworld.tscn"
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"preLaunchTask": "build-v4"
|
"preLaunchTask": "build-v4",
|
||||||
|
"linux": {
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "debug scene v3",
|
||||||
|
"program": "${workspaceFolder}/godot/bin/godot.linux.editor.dev.x86_64",
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "debug scene v3",
|
||||||
|
"program": "${workspaceFolder}/godot/bin/godot.macos.editor.dev.arm64",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
@ -28,14 +40,26 @@
|
|||||||
"example-v4",
|
"example-v4",
|
||||||
],
|
],
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"preLaunchTask": "build-v4"
|
"preLaunchTask": "build-v4",
|
||||||
|
"linux": {
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "debug scene v3",
|
||||||
|
"program": "${workspaceFolder}/godot/bin/godot.linux.editor.dev.x86_64",
|
||||||
|
},
|
||||||
|
"osx": {
|
||||||
|
"type": "lldb",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "debug scene v3",
|
||||||
|
"program": "${workspaceFolder}/godot/bin/godot.macos.editor.dev.arm64",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug scene v3",
|
"name": "debug scene v3",
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"program": "godot/bin/godot.windows.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.windows.tools.64.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"--path",
|
"--path",
|
||||||
"example",
|
"example",
|
||||||
@ -46,20 +70,20 @@
|
|||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug scene v3",
|
"name": "debug scene v3",
|
||||||
"program": "godot/bin/godot.windows.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.linux.tools.64",
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"type": "cppdbg",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug scene v3",
|
"name": "debug scene v3",
|
||||||
"program": "godot/bin/godot.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.osx.tools.64",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "cppvsdbg",
|
"type": "cppvsdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug editor v3",
|
"name": "debug editor v3",
|
||||||
"program": "godot/bin/godot.windows.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.windows.tools.64.exe",
|
||||||
"args": [
|
"args": [
|
||||||
"-e",
|
"-e",
|
||||||
"--path",
|
"--path",
|
||||||
@ -71,13 +95,13 @@
|
|||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug editor v3",
|
"name": "debug editor v3",
|
||||||
"program": "godot/bin/godot.windows.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.linux.tools.64",
|
||||||
},
|
},
|
||||||
"osx": {
|
"osx": {
|
||||||
"type": "cppdbg",
|
"type": "lldb",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "debug editor v3",
|
"name": "debug editor v3",
|
||||||
"program": "godot/bin/godot.tools.64.exe",
|
"program": "${workspaceFolder}/godot/bin/godot.osx.tools.64",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
8
spine-godot/.vscode/tasks.json
vendored
8
spine-godot/.vscode/tasks.json
vendored
@ -14,7 +14,7 @@
|
|||||||
"16",
|
"16",
|
||||||
"target=editor",
|
"target=editor",
|
||||||
"dev_build=yes",
|
"dev_build=yes",
|
||||||
"custom_modules=\"${workspaceFolder}/spine_godot"
|
"custom_modules=\"${workspaceFolder}/spine_godot\""
|
||||||
],
|
],
|
||||||
"problemMatcher": "$msCompile",
|
"problemMatcher": "$msCompile",
|
||||||
"windows": {
|
"windows": {
|
||||||
@ -23,7 +23,7 @@
|
|||||||
"16",
|
"16",
|
||||||
"target=editor",
|
"target=editor",
|
||||||
"dev_build=yes",
|
"dev_build=yes",
|
||||||
"custom_modules=\"${workspaceFolder}/spine_godot",
|
"custom_modules=\"${workspaceFolder}/spine_godot\"",
|
||||||
"livepp=${env:LIVEPP}"
|
"livepp=${env:LIVEPP}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -40,14 +40,14 @@
|
|||||||
"-j",
|
"-j",
|
||||||
"16",
|
"16",
|
||||||
"target=debug",
|
"target=debug",
|
||||||
"custom_modules=\"${workspaceFolder}/spine_godot"
|
"custom_modules=\"${workspaceFolder}/spine_godot\""
|
||||||
],
|
],
|
||||||
"windows": {
|
"windows": {
|
||||||
"args": [
|
"args": [
|
||||||
"-j",
|
"-j",
|
||||||
"16",
|
"16",
|
||||||
"target=debug",
|
"target=debug",
|
||||||
"custom_modules=\"${workspaceFolder}/spine_godot",
|
"custom_modules=\"${workspaceFolder}/spine_godot\"",
|
||||||
"livepp=${env:LIVEPP}"
|
"livepp=${env:LIVEPP}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user