File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
addons/block_code/ui/blocks/block Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ var pinned: bool:
6161 block_pinned_panel .self_modulate = Color (1 , 1 , 1 , 0.75 )
6262
6363 var block_pinned_icon := TextureRect .new ()
64- block_pinned_icon .texture = EditorInterface . get_editor_theme (). get_icon ( "Pin" , "EditorIcons" )
64+ block_pinned_icon .texture = _icon_pin
6565
6666 block_pinned_panel .add_child (block_pinned_icon )
6767 block_pinned_container .add_child (block_pinned_panel )
@@ -79,6 +79,7 @@ var _block_extension: BlockExtension
7979var _block_canvas : Node
8080
8181@onready var _context := BlockEditorContext .get_default ()
82+ @onready var _icon_pin := EditorInterface .get_editor_theme ().get_icon ("Pin" , "EditorIcons" )
8283
8384
8485func _ready ():
@@ -335,7 +336,7 @@ func _copy_snapped_blocks(copy_from: Node, copy_to: Node):
335336 var raw_input = copy_from_child .get_raw_input ()
336337
337338 if not raw_input is Block :
338- copy_to_child .set_raw_input (copy_from_child . get_raw_input () )
339+ copy_to_child .set_raw_input (raw_input )
339340
340341 if copy_from_child is Container :
341342 _copy_snapped_blocks (copy_from_child , copy_to_child )
You can’t perform that action at this time.
0 commit comments