Merge remote-tracking branch 'origin/demo'

This commit is contained in:
cakipaul 2025-07-16 18:08:00 +08:00
commit c720a78161
9 changed files with 37 additions and 90 deletions

View File

@ -246,4 +246,4 @@ textures/vram_compression/import_etc2_astc=true
[statistics]
force_include=PackedStringArray()
ignore=PackedStringArray("res://.import/*", "res://.github/*", "res://addons/*", "*.import", "*.gif", "*.mp3", "*.wav", "*.ogg", "*.png")
ignore=PackedStringArray("res://.import/*", "res://.github/*", "res://addons/*", "*.import", "*.gif", "*.mp3", "*.wav", "*.ogg", "*.png", "res://android/*")

View File

@ -1,4 +1,3 @@
@tool
extends TextureRect
signal shaven(progress: float)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
@tool
extends MeshInstance2D
@export var pixels_per_subdivision: float = 10.0 # 每个细分包含的像素数
@export var pixels_per_subdivision: float = 50.0 # 每个细分包含的像素数
@export_tool_button("重置 mesh") var reset_mesh = create_rope_mesh
@ -66,6 +66,9 @@ func create_rope_mesh():
arrays[Mesh.ARRAY_INDEX] = indices
array_mesh.add_surface_from_arrays(Mesh.PRIMITIVE_TRIANGLES, arrays)
if mesh and mesh.resource_path:
array_mesh.take_over_path(mesh.resource_path)
ResourceSaver.save(array_mesh)
mesh = array_mesh
print(

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long