Commit 5d2df79
committed
Stores the size of the decal inside itself. Allows drawing the decal without accessing the sprite and makes it safe to move the sprite used to create de decal.
Update function from decal will also update the size to match the used sprite.
UpdateSprite will resize the sprite to the size of the decal.1 parent 06fc0f8 commit 5d2df79
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
| 1104 | + | |
| 1105 | + | |
1104 | 1106 | | |
1105 | 1107 | | |
1106 | 1108 | | |
| |||
2026 | 2028 | | |
2027 | 2029 | | |
2028 | 2030 | | |
| 2031 | + | |
| 2032 | + | |
2029 | 2033 | | |
2030 | 2034 | | |
2031 | 2035 | | |
| |||
2040 | 2044 | | |
2041 | 2045 | | |
2042 | 2046 | | |
2043 | | - | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
2044 | 2050 | | |
2045 | 2051 | | |
2046 | 2052 | | |
2047 | 2053 | | |
2048 | 2054 | | |
2049 | 2055 | | |
2050 | 2056 | | |
| 2057 | + | |
2051 | 2058 | | |
2052 | 2059 | | |
2053 | 2060 | | |
| |||
3227 | 3234 | | |
3228 | 3235 | | |
3229 | 3236 | | |
3230 | | - | |
3231 | | - | |
| 3237 | + | |
| 3238 | + | |
3232 | 3239 | | |
3233 | 3240 | | |
3234 | 3241 | | |
| |||
0 commit comments