Skip to content

Commit

Permalink
Fixed reversed occlusion planes export
Browse files Browse the repository at this point in the history
  • Loading branch information
sauraen committed Jun 12, 2024
1 parent b36f450 commit 2354f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fast64_internal/f3d/occlusion_planes/exporter/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def addOcclusionQuads(
cross0 = edge30.cross(edge01)
if cross0.dot(cross1) < 0.0 or cross0.dot(cross2) < 0.0 or cross0.dot(cross3) < 0.0:
raise PluginError(f"Occlusion planes mesh {obj.name} contains a quad which is not convex.")
candidatesList.planes.append(OcclusionPlaneCandidate(verts[0], verts[1], verts[2], verts[3], weight))
candidatesList.planes.append(OcclusionPlaneCandidate(verts[3], verts[2], verts[1], verts[0], weight))

if includeChildren:
for child in obj.children:
Expand Down

0 comments on commit 2354f17

Please sign in to comment.