Compare commits

...

3 Commits

3 changed files with 27 additions and 26 deletions

View File

@ -6,15 +6,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v5
with: with:
python-version: '3.x' python-version: '3.12'
- name: Setup .NET Core SDK - name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.7.2 uses: actions/setup-dotnet@v4.0.0
with: with:
dotnet-version: '6.0.x' dotnet-version: '6.0.x'
@ -46,7 +46,7 @@ jobs:
- name: Download KSP Dependencies - name: Download KSP Dependencies
run: | run: |
wget http://taniwha.org/~bill/Shabby_v0.3.0.zip wget https://pileof.rocks/KSP/Shabby_v0.3.0.zip
wget https://ksp.sarbian.com/jenkins/job/ModuleManager/161/artifact/ModuleManager.4.2.1.dll wget https://ksp.sarbian.com/jenkins/job/ModuleManager/161/artifact/ModuleManager.4.2.1.dll
wget https://github.com/blowfishpro/B9PartSwitch/releases/download/v2.19.0/B9PartSwitch_v2.19.0.zip wget https://github.com/blowfishpro/B9PartSwitch/releases/download/v2.19.0/B9PartSwitch_v2.19.0.zip
wget https://github.com/KSPModdingLibs/HarmonyKSP/releases/download/2.0.4.0/HarmonyKSP_2.0.4.0_for_KSP1.8+.zip wget https://github.com/KSPModdingLibs/HarmonyKSP/releases/download/2.0.4.0/HarmonyKSP_2.0.4.0_for_KSP1.8+.zip
@ -59,22 +59,22 @@ jobs:
mv HarmonyKSP/GameData/000_Harmony GameData/ mv HarmonyKSP/GameData/000_Harmony GameData/
- name: Upload Unbundled Build - name: Upload Unbundled Build
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ConformalDecals-unbundled name: ConformalDecals-unbundled
path: | path: |
GameData/ConformalDecals GameData/ConformalDecals/
README.md README.md
CHANGELOG.md CHANGELOG.md
LICENSE-ART.md LICENSE-ART.md
LICENSE-SOURCE.md LICENSE-SOURCE.md
- name: Upload Bundled Build - name: Upload Bundled Build
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: ConformalDecals name: ConformalDecals
path: | path: |
GameData GameData/
README.md README.md
CHANGELOG.md CHANGELOG.md
LICENSE-ART.md LICENSE-ART.md
@ -87,23 +87,18 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up Python - name: Setup Python
uses: actions/setup-python@v2 uses: actions/setup-python@v5
with: with:
python-version: '3.x' python-version: '3.12'
- name: Install Python Tools - name: Install Python Tools
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
python -m pip install yaclog python -m pip install yaclog
- name: Get version name and body
run: |
echo "VERSION_TITLE=$(yaclog show -n)" >> $GITHUB_ENV
echo "$(yaclog show -mb)" >> RELEASE.md
- name: Download Build Artifacts - name: Download Build Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@ -128,12 +123,9 @@ jobs:
"https://spacedock.info/api/mod/2451/update" "https://spacedock.info/api/mod/2451/update"
- name: Publish to Github - name: Publish to Github
uses: softprops/action-gh-release@v1 run: |
with: gh release create ${{ github.ref_name }} \
files: | --notes "$(yaclog show -mb)" \
bundled/ConformalDecals-*.zip --title "Version $(yaclog show -n)"
ConformalDecals/GameData/ConformalDecals/Versioning/ConformalDecals.version
name: Conformal Decals ${{ env.VERSION_TITLE }}
body_path: RELEASE.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -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 | | website | https://forum.kerbalspaceprogram.com/index.php?/topic/194802-18-111-conformal-decals |
| author | Andrew Cassidy | | author | Andrew Cassidy |
## Unreleased
### Fixed
- Fixed flag decals sometimes not respecting image aspect ratio
## 0.2.12 - 2022-10-31 ## 0.2.12 - 2022-10-31
### Changed ### Changed

View File

@ -114,6 +114,8 @@ namespace ConformalDecals {
var ratio = DecalConfig.AspectRatios[textureURL]; var ratio = DecalConfig.AspectRatios[textureURL];
this.Log($"Overriding aspect ratio for {textureURL} with {ratio}"); this.Log($"Overriding aspect ratio for {textureURL} with {ratio}");
textureProperty.AspectRatio = ratio; textureProperty.AspectRatio = ratio;
} else {
textureProperty.AspectRatio = -1.0f;
} }
UpdateMaterials(); UpdateMaterials();