Skip to content

Commit

Permalink
Fix #9 - always resync local assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Vorlias committed Jan 8, 2024
1 parent 8b702fe commit edcf1d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tarmac"
description = "Resource compiler and asset manager for Roblox projects"
version = "0.7.4"
version = "0.7.5"
authors = ["Lucien Greathouse <me@lpghatguy.com>", "Jonathan Holmes"]
edition = "2018"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ The recommended way to install Tarmac is with [Aftman](https://github.com/LPGhat
Add an entry to the `[tools]` section of your `aftman.toml` file:

```toml
tarmac = "rojo-rbx/tarmac@0.7.4"
tarmac = "rojo-rbx/tarmac@0.7.5"
```

### Installing with Foreman

Add an entry to the `[tools]` section of your `foreman.toml` file:

```toml
tarmac = { source = "rojo-rbx/tarmac", version = "0.7.4" }
tarmac = { source = "rojo-rbx/tarmac", version = "0.7.5" }
```


Expand Down
6 changes: 6 additions & 0 deletions src/commands/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ impl SyncSession {
for name in group {
if let Some(manifest) = self.original_manifest.inputs.get(name) {
let input = &self.inputs[name];

// If a sprite is local, it should be resynced just in case we decide to publish using roblox later...
if input.id.is_none() {
return false;
}

let unchanged = input.is_unchanged_since_last_sync(manifest);

if !unchanged {
Expand Down

0 comments on commit edcf1d7

Please # to comment.