mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 08:38:43 +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();
|
||||
|
||||
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 (reloadTimer <= 0) {
|
||||
lastModifiedCheck -= delta;
|
||||
@ -273,7 +282,6 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
|
||||
// Draw indicator lines for animation and mix times.
|
||||
if (state != null) {
|
||||
ShapeRenderer shapes = debugRenderer.getShapeRenderer();
|
||||
TrackEntry entry = state.getCurrent(0);
|
||||
if (entry != null) {
|
||||
shapes.begin(ShapeType.Line);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user