|
@@ -125,7 +125,8 @@ class GodotExporter:
|
|
|
# CollisionShape node has different direction in blender
|
|
|
# and godot, so it has a -90 rotation around X axis,
|
|
|
# here rotate its children back
|
|
|
- if exported_node.parent.get_type() == 'CollisionShape':
|
|
|
+ if (exported_node.parent is not None and
|
|
|
+ exported_node.parent.get_type() == 'CollisionShape'):
|
|
|
exported_node['transform'] = (
|
|
|
mathutils.Matrix.Rotation(math.radians(90), 4, 'X') *
|
|
|
exported_node['transform'])
|