mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 21:28:35 +01:00
Fixed DataTextureAtlas creating unnamed entries if there are empty lines at the start or end of the atlas file
This commit is contained in:
parent
b0bf55842b
commit
3ab2466d32
3 changed files with 12 additions and 1 deletions
|
@ -47,6 +47,9 @@ Improvements
|
|||
- **Use a binary tree algorithm for RuntimeTexturePacker to vastly increase packing speed**
|
||||
- Made fields and methods in StaticJsonConverter protected to allow extending it
|
||||
|
||||
Fixes
|
||||
- Fixed DataTextureAtlas creating unnamed entries if there are empty lines at the start or end of the atlas file
|
||||
|
||||
## 7.1.1
|
||||
|
||||
### MLEM
|
||||
|
|
|
@ -104,7 +104,7 @@ namespace MLEM.Data {
|
|||
throw new ContentLoadException($"Couldn't load data texture atlas data from {info}", e);
|
||||
}
|
||||
var atlas = new DataTextureAtlas(texture);
|
||||
var words = Regex.Split(text, @"\s+");
|
||||
var words = Regex.Split(text.Trim(), @"\s+");
|
||||
|
||||
var namesOffsets = new List<(string, Vector2)>();
|
||||
var customData = new Dictionary<string, string>();
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
|
||||
|
||||
|
||||
SimpleDeskUp
|
||||
loc 0 0 48 32
|
||||
piv 16 16
|
||||
|
@ -13,6 +16,10 @@ TestRegionNegativePivot
|
|||
loc 0 32 +16 16
|
||||
piv -32 +46
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
DataTest
|
||||
loc 0 0 16 16
|
||||
dat DataPoint1 ThisIsSomeData
|
||||
|
@ -27,6 +34,7 @@ cpy Copy2 32 4
|
|||
Copy3 from
|
||||
LongTableUp off 2 4
|
||||
|
||||
|
||||
LongTableRight LongTableDown LongTableLeft
|
||||
location 32 30 64 48
|
||||
piv 80 46
|
||||
|
|
Loading…
Reference in a new issue