summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-22 08:32:38 +0100
committerskal <pascal.massimino@gmail.com>2026-03-22 08:32:38 +0100
commit62fb3ffa615aaf51e727f734c7e7fd25a36226e5 (patch)
tree71fe60c009cbc2b5534ae5a58f25c5d6fb0f27e9 /tools
parent27427e7efbf332189c419f9ef84f717d4bd96db6 (diff)
fix(blender_export): only write plane_distance for PLANE objects
Diffstat (limited to 'tools')
-rw-r--r--tools/blender_export.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/blender_export.py b/tools/blender_export.py
index fb800ac..d19eef1 100644
--- a/tools/blender_export.py
+++ b/tools/blender_export.py
@@ -90,10 +90,9 @@ def export_scene(filepath):
f.write(struct.pack('<4f', *color))
# Plane Distance (if type == PLANE)
- plane_distance = 0.0
if obj_type == 2: # PLANE
- plane_distance = obj.get('plane_distance', 0.0)
- f.write(struct.pack('<f', plane_distance))
+ plane_distance = float(obj.get('plane_distance', 0.0))
+ f.write(struct.pack('<f', plane_distance))
# Mesh Asset Name
mesh_asset_name = ""