Store the draw type when exporting empty nodes

Supports using empties as placeholders for collision shapes
This commit is contained in:
Henry Conklin
2021-08-25 21:17:58 -04:00
parent 0fc4d15915
commit eaf80e476a
9 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
[gd_scene load_steps=1 format=2]
[node type="Spatial" name="Scene"]
[node name="arrow-colonly" type="Spatial" parent="."]
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
__meta__ = { "empty_draw_type": "SINGLE_ARROW" }

View File

@@ -0,0 +1,8 @@
[gd_scene load_steps=1 format=2]
[node type="Spatial" name="Scene"]
[node name="cube-colonly" type="Spatial" parent="."]
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
__meta__ = { "empty_draw_type": "CUBE" }

View File

@@ -0,0 +1,8 @@
[gd_scene load_steps=1 format=2]
[node type="Spatial" name="Scene"]
[node name="image-colonly" type="Spatial" parent="."]
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
__meta__ = { "empty_draw_type": "IMAGE" }

View File

@@ -0,0 +1,8 @@
[gd_scene load_steps=1 format=2]
[node type="Spatial" name="Scene"]
[node name="sphere-colonly" type="Spatial" parent="."]
transform = Transform(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0)
__meta__ = { "empty_draw_type": "SPHERE" }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.