Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Release 1.15.1 - Fix pixel rounding bug.
Browse files Browse the repository at this point in the history
Release 1.15.1 - Fix pixel rounding bug.
  • Loading branch information
MikalDev committed Sep 19, 2020
1 parent 0da81d5 commit a4710ae
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file added dist/Spine-v1.15.1.c3addon
Binary file not shown.
2 changes: 1 addition & 1 deletion src/addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "plugin",
"name": "Spine",
"id": "Gritsenko_Spine",
"version": "1.15.0",
"version": "1.15.1",
"author": "Mikal and Igor Gritsenko",
"website": "https://gritsenko.github.io/c3_spine_plugin",
"documentation": "https://gritsenko.github.io/c3_spine_plugin",
Expand Down
1 change: 1 addition & 0 deletions src/c3runtime/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
renderer.SetTexture(this._elementTexture);

if (this.runtime.IsPixelRoundingEnabled()) {
let tempQuad = new C3.Quad();
const ox = Math.round(wi.GetX()) - wi.GetX();
const oy = Math.round(wi.GetY()) - wi.GetY();
tempQuad.copy(quad);
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{

const PLUGIN_ID = "Gritsenko_Spine";
const PLUGIN_VERSION = "1.15.0";
const PLUGIN_VERSION = "1.15.1";
const PLUGIN_CATEGORY = "general";

const PLUGIN_CLASS = SDK.Plugins.Gritsenko_Spine = class SpinePlugin extends SDK.IPluginBase {
Expand Down

0 comments on commit a4710ae

Please sign in to comment.