From b3afd8345dfa44c4f9ae5eacc9a1044ab303474e Mon Sep 17 00:00:00 2001 From: frankko Date: Fri, 17 May 2024 09:11:52 -0500 Subject: [PATCH] restores updating image fills; fixes #18 --- .../Contents/Sketch/PlaceLinkedBitmap.js | 4 ---- .../Contents/Sketch/manifest.json | 2 +- README.md | 2 ++ appcast.xml | 13 ++++++++++++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Place Linked Bitmap.sketchplugin/Contents/Sketch/PlaceLinkedBitmap.js b/Place Linked Bitmap.sketchplugin/Contents/Sketch/PlaceLinkedBitmap.js index 1f7517b..23dfa7f 100644 --- a/Place Linked Bitmap.sketchplugin/Contents/Sketch/PlaceLinkedBitmap.js +++ b/Place Linked Bitmap.sketchplugin/Contents/Sketch/PlaceLinkedBitmap.js @@ -170,12 +170,8 @@ var PlaceLinkedBitmap = { jsImageLayer.image = filePath; }, "updateShapeLayer": function(context,layer,url) { - var doc = context.document; - var imageCollection = [[[doc documentData] assets] imageCollection]; - var filePath = url.toString(); filePath = filePath.replace("file:///","/"); - filePath = this.util.decodeString(filePath); var imageData = [[NSImage alloc] initWithContentsOfFile:filePath]; var newImage = [[MSImageData alloc] initWithImage:imageData]]; diff --git a/Place Linked Bitmap.sketchplugin/Contents/Sketch/manifest.json b/Place Linked Bitmap.sketchplugin/Contents/Sketch/manifest.json index f2f371b..5b99fa0 100644 --- a/Place Linked Bitmap.sketchplugin/Contents/Sketch/manifest.json +++ b/Place Linked Bitmap.sketchplugin/Contents/Sketch/manifest.json @@ -46,5 +46,5 @@ "compatibleVersion": "99", "description": "Place external bitmap files into Sketch; update Sketch layers after external bitmaps are updated.", "name": "Place Linked Bitmap", - "version": "1.99.0" + "version": "1.99.1" } diff --git a/README.md b/README.md index fbfcda0..e9eb415 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,8 @@ If you roll solo, like I do, you don’t have too much to worry about. But if yo ### Version History +- **1.99.1** + - Fixes image fills not updating. - **1.99.0** - updates for Sketch 99. - **1.77.0** diff --git a/appcast.xml b/appcast.xml index 4783cc0..bdcd23a 100644 --- a/appcast.xml +++ b/appcast.xml @@ -5,6 +5,17 @@ https://raw.githubusercontent.com/frankko/Place-Linked-Bitmap/master/appcast.xml Place external bitmap files into Sketch; update Sketch layers after external bitmaps are updated. en + + Version 1.99.1 + + +
  • 2024-05-17: Fixes image fills not updating.
  • + + ]]> +
    + +
    Version 1.99.0 @@ -14,7 +25,7 @@ ]]> - + Version 1.77.0