2022-01-01 13:55:01 +01:00
[gd_resource type="Resource" load_steps=3 format=2]
2021-12-15 20:58:46 +01:00
2022-01-01 13:55:01 +01:00
[ext_resource path="res://production/blueprints/mannequin/capsule_mesh.mesh" type="ArrayMesh" id=1]
2021-12-26 11:39:56 +01:00
2021-12-15 20:58:46 +01:00
[sub_resource type="GDScript" id=1]
script/source = "tool
extends SummerDayBlueprint
2022-01-01 13:55:01 +01:00
#export(Mesh) var model
#func _create_model():
# var caps := CapsuleMesh.new()
# caps.radius = 0.9
# caps.mid_height = 2
# caps.radial_segments = 16
# caps.rings = 2
#
# var arr_mesh := ArrayMesh.new()
# arr_mesh.add_surface_from_arrays(
# Mesh.PRIMITIVE_TRIANGLES, caps.get_mesh_arrays()
# )
#
# var m = MeshInstance.new()
# m.material_override = custom_material
# m.add_to_group(\"SummerDaySpatialTransform\", true)
# m.mesh = arr_mesh
#
# table = Image.new()
# table.create(8, 1, false, Image.FORMAT_RGBAF)
# #
# var texture = ImageTexture.new()
# #
# texture.create_from_image(table, 0)
# m.material_override.set_shader_param(\"table\", texture)
# m.name = \"TestCapsule\"
#
# model = PackedScene.new()
# var result = model.pack(m)
# return model
func _create_cell(table: SummerDayTable):
2021-12-19 22:26:09 +01:00
var cell = SummerDayCell.new()
var cylinder = SummerDayEditableTube.new()
cell.editable_list.append(cylinder)
2021-12-21 21:40:04 +01:00
return cell
"
2021-12-15 20:58:46 +01:00
[resource]
script = SubResource( 1 )
2022-01-01 13:55:01 +01:00
model = ExtResource( 1 )