mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Fix flag decals not respecting aspect ratio
This commit is contained in:
parent
c0d20f847d
commit
b48db63a27
@ -8,6 +8,13 @@ All notable changes to this project will be documented in this file
|
||||
| website | https://forum.kerbalspaceprogram.com/index.php?/topic/194802-18-111-conformal-decals |
|
||||
| author | Andrew Cassidy |
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed flag decals sometimes not respecting image aspect ratio
|
||||
|
||||
|
||||
## 0.2.12 - 2022-10-31
|
||||
|
||||
### Changed
|
||||
|
@ -114,6 +114,8 @@ namespace ConformalDecals {
|
||||
var ratio = DecalConfig.AspectRatios[textureURL];
|
||||
this.Log($"Overriding aspect ratio for {textureURL} with {ratio}");
|
||||
textureProperty.AspectRatio = ratio;
|
||||
} else {
|
||||
textureProperty.AspectRatio = -1.0f;
|
||||
}
|
||||
|
||||
UpdateMaterials();
|
||||
|
Loading…
Reference in New Issue
Block a user