Skip to content

Commit 9114d34

Browse files
author
Leo Schurrer
committed
feat: enable physics data creation
1 parent 9abf7bd commit 9114d34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lithtech_dat_import.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def createPhysicsData(parent, world):
150150
parent: collection the data physics collection is append to
151151
world: dat_importer.lithtech_dat.LithtechDat imported map file
152152
"""
153-
physics = vertigo.collision_data.polygons
153+
physics = world.collision_data.polygons
154154
poly_vertices = []
155155
poly_triangles = []
156156
index = 0
@@ -177,6 +177,7 @@ def read_some_data(C, filepath, use_some_setting):
177177
map = bpy.data.collections.new(name)
178178
createRenderNodes(map, dat)
179179
createWMRenderNodes(map, dat)
180+
createPhysicsData(map, dat)
180181
C.collection.children.link(map)
181182

182183
return {'FINISHED'}

0 commit comments

Comments
 (0)