Skip to content

Commit

Permalink
[7.31] Fixed when not using whitespace trimming.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 24, 2022
1 parent 300bb46 commit b893a13
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions photoshop/PhotoshopToSpine.jsx
Expand Up @@ -14,7 +14,7 @@ app.bringToFront();
// * Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

var scriptVersion = 7.30; // This is incremented every time the script is modified, so you know if you have the latest.
var scriptVersion = "7.31"; // This is incremented every time the script is modified, so you know if you have the latest.

var revealAll = false; // Set to true to enlarge the canvas so layers are not cropped.
var legacyJson = true; // Set to false to output the newer Spine JSON format.
Expand Down Expand Up @@ -426,9 +426,8 @@ function run () {
} else {
x = 0;
y = 0;
width = docWidth - xOffSet * settings.scale;
height = docHeight - yOffSet * settings.scale;
docHeightCropped = docHeight;
width = docWidth;
height = docHeightCropped = docHeight;
}
width = width * settings.scale + settings.padding * 2;
height = height * settings.scale + settings.padding * 2;
Expand Down

1 comment on commit b893a13

@jonlepage
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NathanSweet
the help page is useless we cant select/copy....
image

can you add a clickable link to this page plz? https://github.com/EsotericSoftware/spine-scripts/blob/master/photoshop/README.md

Please sign in to comment.