mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Lines for skeleton origin.
This commit is contained in:
parent
ae7ca98b8e
commit
7292b7d720
@ -228,6 +228,15 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
|
|
||||||
float delta = Gdx.graphics.getDeltaTime();
|
float delta = Gdx.graphics.getDeltaTime();
|
||||||
|
|
||||||
|
ShapeRenderer shapes = debugRenderer.getShapeRenderer();
|
||||||
|
if (state != null) {
|
||||||
|
shapes.setColor(Color.DARK_GRAY);
|
||||||
|
shapes.begin(ShapeType.Line);
|
||||||
|
shapes.line(skeleton.x, -99999, skeleton.x, 99999);
|
||||||
|
shapes.line(-99999, skeleton.y, 99999, skeleton.y);
|
||||||
|
shapes.end();
|
||||||
|
}
|
||||||
|
|
||||||
if (skeleton != null) {
|
if (skeleton != null) {
|
||||||
if (reloadTimer <= 0) {
|
if (reloadTimer <= 0) {
|
||||||
lastModifiedCheck -= delta;
|
lastModifiedCheck -= delta;
|
||||||
@ -273,7 +282,6 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
|
|
||||||
// Draw indicator lines for animation and mix times.
|
// Draw indicator lines for animation and mix times.
|
||||||
if (state != null) {
|
if (state != null) {
|
||||||
ShapeRenderer shapes = debugRenderer.getShapeRenderer();
|
|
||||||
TrackEntry entry = state.getCurrent(0);
|
TrackEntry entry = state.getCurrent(0);
|
||||||
if (entry != null) {
|
if (entry != null) {
|
||||||
shapes.begin(ShapeType.Line);
|
shapes.begin(ShapeType.Line);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user