mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Merge branch 'Godot-4' of https://github.com/don-tnowe/godot-resources-as-sheets-plugin into Godot-4
This commit is contained in:
commit
b901eab884
@ -86,6 +86,10 @@ func _update_column_sizes():
|
||||
show()
|
||||
await get_tree().process_frame
|
||||
|
||||
# Abort if the node has been deleted since.
|
||||
if !is_instance_valid(column_headers[0]):
|
||||
return
|
||||
|
||||
get_parent().custom_minimum_size.y = column_headers[0].size.y
|
||||
for i in column_headers.size():
|
||||
column_headers[i].position.x = grid.get_child(i).position.x
|
||||
|
@ -47,5 +47,7 @@ func is_text():
|
||||
|
||||
|
||||
func _on_preview_loaded(path : String, preview : Texture, thumbnail_preview : Texture, node):
|
||||
node.get_node("Box/Tex").visible = true
|
||||
node.get_node("Box/Tex").texture = preview
|
||||
# Abort if the node has been deleted since.
|
||||
if is_instance_valid(node):
|
||||
node.get_node("Box/Tex").visible = true
|
||||
node.get_node("Box/Tex").texture = preview
|
||||
|
Loading…
Reference in New Issue
Block a user