Skip to content

Commit 7885bcd

Browse files
authored
Quick fix
1 parent 19ca12a commit 7885bcd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

addons/block_code/ui/blocks/parameter_block/parameter_block.gd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ static func get_scene_path():
5050

5151

5252
func _on_focus_entered():
53-
_panel.add_theme_stylebox_override("panel", _panel_focus)
53+
if not definition == null and not definition.variant_type == Variant.Type.TYPE_BOOL:
54+
_panel.add_theme_stylebox_override("panel", _panel_focus)
5455

5556

5657
func _on_focus_exited():
57-
_panel.add_theme_stylebox_override("panel", _panel_normal)
58+
if not definition == null and not definition.variant_type == Variant.Type.TYPE_BOOL:
59+
_panel.add_theme_stylebox_override("panel", _panel_normal)

0 commit comments

Comments
 (0)