Compare commits

..

4 Commits

Author SHA1 Message Date
Colin Basnett
03c69783b3 Updated workflow file to be targetted against the stable version of 4.2 2024-07-31 19:16:00 -07:00
Colin Basnett
da4960298b Incremented version to 7.1.1 2024-07-31 19:09:49 -07:00
Colin Basnett
a9706d88a5 Vertices without explicit weights are now weighted to the root bone
There is an issue in some older versions of Unreal (e.g. Postal), where
the engine does not handle vertices without explicit weighting,
resulting in corrupted meshes. This now mitigates the issue.

Thank you to makabray for reporting this issue.
2024-07-31 19:09:22 -07:00
Colin Basnett
9dd02260d5 Replaced __doc__ with bl_description 2024-07-31 19:01:48 -07:00
5 changed files with 17 additions and 11 deletions

View File

@@ -6,18 +6,24 @@ on:
branches: [ "main" ] branches: [ "main" ]
pull_request: pull_request:
branches: [ "main" ] branches: [ "main" ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
BLENDER_VERSION: blender-4.2.0-beta+v42.d19d23e91f65-linux.x86_64-release BLENDER_VERSION: blender-4.2.0-linux-x64
ADDON_NAME: io_scene_psk_psa
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: SebRollen/toml-action@v1.2.0
id: read_manifest
with:
file: '${{ env.ADDON_NAME }}/blender_manifest.toml'
field: 'version'
- name: Set derived environment variables - name: Set derived environment variables
run: | run: |
echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV echo "BLENDER_FILENAME=${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
echo "BLENDER_URL=https://cdn.builder.blender.org/download/daily/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV echo "BLENDER_URL=https://mirrors.iu13.net/blender/release/Blender4.2/${{ env.BLENDER_VERSION }}.tar.xz" >> $GITHUB_ENV
- name: Install Blender Dependencies - name: Install Blender Dependencies
run: | run: |
sudo apt-get install libxxf86vm-dev -y sudo apt-get install libxxf86vm-dev -y
@@ -35,14 +41,14 @@ jobs:
echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH echo "${{ github.workspace }}/${{ env.BLENDER_VERSION }}/" >> $GITHUB_PATH
- name: Build extension - name: Build extension
run: | run: |
pushd ./io_scene_psk_psa pushd ./${{ env.ADDON_NAME }}
blender --command extension build blender --command extension build
mkdir artifact mkdir artifact
unzip -q io_scene_psk_psa.zip -d ./artifact unzip -q ${{ env.ADDON_NAME }}-${{ steps.read_manifest.outputs.value }}.zip -d ./artifact
popd popd
- name: Archive addon - name: Archive addon
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: io_scene_psk_psa-${{ github.ref_name }}-${{ github.sha }} name: ${{ env.ADDON_NAME }}-${{ github.ref_name }}-${{ github.sha }}
path: | path: |
./io_scene_psk_psa/artifact/* ./${{ env.ADDON_NAME }}/artifact/*

View File

@@ -1,6 +1,6 @@
schema_version = "1.0.0" schema_version = "1.0.0"
id = "io_scene_psk_psa" id = "io_scene_psk_psa"
version = "7.1.0" version = "7.1.1"
name = "Unreal PSK/PSA (.psk/.psa)" name = "Unreal PSK/PSA (.psk/.psa)"
tagline = "Import and export PSK and PSA files used in Unreal Engine" tagline = "Import and export PSK and PSA files used in Unreal Engine"
maintainer = "Colin Basnett <cmbasnett@gmail.com>" maintainer = "Colin Basnett <cmbasnett@gmail.com>"

View File

@@ -214,7 +214,7 @@ class PSA_OT_export(Operator, ExportHelper):
bl_idname = 'psa_export.operator' bl_idname = 'psa_export.operator'
bl_label = 'Export' bl_label = 'Export'
bl_options = {'INTERNAL', 'UNDO'} bl_options = {'INTERNAL', 'UNDO'}
__doc__ = 'Export actions to PSA' bl_description = 'Export actions to PSA'
filename_ext = '.psa' filename_ext = '.psa'
filter_glob: StringProperty(default='*.psa', options={'HIDDEN'}) filter_glob: StringProperty(default='*.psa', options={'HIDDEN'})
filepath: StringProperty( filepath: StringProperty(

View File

@@ -159,7 +159,7 @@ class PSK_OT_export(Operator, ExportHelper):
bl_idname = 'export.psk' bl_idname = 'export.psk'
bl_label = 'Export' bl_label = 'Export'
bl_options = {'INTERNAL', 'UNDO'} bl_options = {'INTERNAL', 'UNDO'}
__doc__ = 'Export mesh and armature to PSK' bl_description = 'Export mesh and armature to PSK'
filename_ext = '.psk' filename_ext = '.psk'
filter_glob: StringProperty(default='*.psk', options={'HIDDEN'}) filter_glob: StringProperty(default='*.psk', options={'HIDDEN'})

View File

@@ -27,7 +27,7 @@ class PSK_OT_import(Operator, ImportHelper):
bl_idname = 'import_scene.psk' bl_idname = 'import_scene.psk'
bl_label = 'Import' bl_label = 'Import'
bl_options = {'INTERNAL', 'UNDO', 'PRESET'} bl_options = {'INTERNAL', 'UNDO', 'PRESET'}
__doc__ = 'Load a PSK file' bl_description = 'Import a PSK file'
filename_ext = '.psk' filename_ext = '.psk'
filter_glob: StringProperty(default='*.psk;*.pskx', options={'HIDDEN'}) filter_glob: StringProperty(default='*.psk;*.pskx', options={'HIDDEN'})
filepath: StringProperty( filepath: StringProperty(