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:
61
61
block_pinned_panel .self_modulate = Color (1 , 1 , 1 , 0.75 )
62
62
63
63
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
65
65
66
66
block_pinned_panel .add_child (block_pinned_icon )
67
67
block_pinned_container .add_child (block_pinned_panel )
@@ -79,6 +79,7 @@ var _block_extension: BlockExtension
79
79
var _block_canvas : Node
80
80
81
81
@onready var _context := BlockEditorContext .get_default ()
82
+ @onready var _icon_pin := EditorInterface .get_editor_theme ().get_icon ("Pin" , "EditorIcons" )
82
83
83
84
84
85
func _ready ():
@@ -335,7 +336,7 @@ func _copy_snapped_blocks(copy_from: Node, copy_to: Node):
335
336
var raw_input = copy_from_child .get_raw_input ()
336
337
337
338
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 )
339
340
340
341
if copy_from_child is Container :
341
342
_copy_snapped_blocks (copy_from_child , copy_to_child )
You can’t perform that action at this time.
0 commit comments