fix: update to blender 4.2 LTS

- update to Blender 4.2 LTS
- fix issue that can not find specular property in priniciple BSDF when applying virtools material.
- update blender manifest toml to let plugin works.
- there are various mesh works need to be fixed in later commits. this commit can not works normally on blender 4.2
This commit is contained in:
2024-07-17 09:16:27 +08:00
parent 8588f097a2
commit aa602a7bb8
3 changed files with 8 additions and 3 deletions

View File

@ -397,7 +397,7 @@ def apply_to_blender_material(mtl: bpy.types.Material):
# bnode.inputs["Emission"].default_value = rawdata.mEmissive.to_const_rgba()
mtl.specular_intensity = rawdata.mSpecularPower
bnode.inputs["Specular"].default_value = UTIL_functions.clamp_float(
bnode.inputs["Specular IOR Level"].default_value = UTIL_functions.clamp_float(
rawdata.mSpecularPower, 0.0, 1.0
)

View File

@ -44,7 +44,7 @@ license = [
# ]
# Optional list of supported platforms. If ommitted, the extension will be available in all operating systems.
platforms = ["windows-amd64", "linux-x86_64"]
platforms = ["windows-amd64", "windows-x64", "linux-x86_64", "linux-x64"]
# Supported platforms: "windows-amd64", "macos-arm64", "linux-x86_64", "windows-arm64", "macos-x86_64"
# Optional: bundle 3rd party Python modules.