From 1e19322afdf6ec2c2c5be7bfd7a972ce311ad3ce Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Mon, 9 Oct 2023 14:25:24 +0100 Subject: [PATCH 1/3] Full path to releases in url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a0afbd2..f76a7e8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ glTF specification for rigid body dynamics, [KHR_rigid_bodies](https://github.co ## Installation -1. Download a zip file from the [releases](releases) page. +1. Download a zip file from the [releases](https://github.com/eoineoineoin/glTF_Physics_Blender_Exporter/releases) page. 2. Launch Blender. 3. Navigate to Edit → Preferences → Add-ons and click the "Install" button. 4. Select the zip file you downloaded. From bd49101ea254b37f885113862fff84b0b9f998c3 Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Mon, 9 Oct 2023 14:25:32 +0100 Subject: [PATCH 2/3] Bump version --- addons/KHR_rigid_bodies/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/KHR_rigid_bodies/__init__.py b/addons/KHR_rigid_bodies/__init__.py index e6b4199..79f9698 100644 --- a/addons/KHR_rigid_bodies/__init__.py +++ b/addons/KHR_rigid_bodies/__init__.py @@ -7,7 +7,7 @@ bl_info = { "name": "KHR_rigid_bodies", "category": "Import-Export", - "version": (0, 0, 2), + "version": (0, 1, 0), "blender": (3, 6, 0), "location": "File > Export > glTF 2.0", "description": "Extension for adding rigid body information to exported glTF file", From 232aaa0d37c7652a3f10d8cf4481af3f571f6065 Mon Sep 17 00:00:00 2001 From: Eoin Mcloughlin Date: Fri, 24 Nov 2023 13:51:25 +0000 Subject: [PATCH 3/3] API change in Blender 4 Fixes #4 --- .../blender/com/gltf2_blender_rigid_bodies_ui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/KHR_rigid_bodies/blender/com/gltf2_blender_rigid_bodies_ui.py b/addons/KHR_rigid_bodies/blender/com/gltf2_blender_rigid_bodies_ui.py index 03b27a8..421ab0a 100644 --- a/addons/KHR_rigid_bodies/blender/com/gltf2_blender_rigid_bodies_ui.py +++ b/addons/KHR_rigid_bodies/blender/com/gltf2_blender_rigid_bodies_ui.py @@ -79,7 +79,8 @@ class KHR_rigid_body_importer_properties(bpy.types.PropertyGroup): class KHR_rigid_body_viewport_render: def __init__(self): if not bpy.app.background: - self.shader = gpu.shader.from_builtin("3D_UNIFORM_COLOR") + shaderType = "3D_UNIFORM_COLOR" if bpy.app.version[0] < 4 else "UNIFORM_COLOR" + self.shader = gpu.shader.from_builtin(shaderType) else: self.shader = None