Skip to content

Commit

Permalink
restores updating image fills; fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
frankko committed May 17, 2024
1 parent 928e295 commit b3afd83
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
13 changes: 12 additions & 1 deletion appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
<link>https://raw.githubusercontent.com/frankko/Place-Linked-Bitmap/master/appcast.xml</link>
<description>Place external bitmap files into Sketch; update Sketch layers after external bitmaps are updated.</description>
<language>en</language>
<item>
<title>Version 1.99.1</title>
<description>
<![CDATA[
<ul>
<li>2024-05-17: Fixes image fills not updating.</li>
</ul>
]]>
</description>
<enclosure url="https://github.com/frankko/Place-Linked-Bitmap/archive/master.zip" sparkle:version="1.99.1" />
</item>
<item>
<title>Version 1.99.0</title>
<description>
Expand All @@ -14,7 +25,7 @@
</ul>
]]>
</description>
<enclosure url="https://github.com/frankko/Place-Linked-Bitmap/archive/master.zip" sparkle:version="1.99.0" />
<enclosure url="https://github.com/frankko/Place-Linked-Bitmap/archive/928e295a47efc8b473b00d7d50067a7f6953c3ab.zip" sparkle:version="1.99.0" />
</item>
<item>
<title>Version 1.77.0</title>
Expand Down

0 comments on commit b3afd83

Please sign in to comment.