Skip to content

Commit 6729c4e

Browse files
authored
Merge pull request #349 from endlessm/fix-remove-polyfill
Fix remove polyfill for Node.is_part_of_edited_scene()
2 parents 29e6dac + db76b77 commit 6729c4e

File tree

1 file changed

+1
-2
lines changed
  • addons/block_code/blocks/communication

1 file changed

+1
-2
lines changed

addons/block_code/blocks/communication/groups.gd

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
extends BlockExtension
44

55
const OptionData = preload("res://addons/block_code/code_generation/option_data.gd")
6-
const Util = preload("res://addons/block_code/ui/util.gd")
76

87

98
# Global groups are just project settings in the global_group group.
@@ -58,7 +57,7 @@ func get_defaults() -> Dictionary:
5857
return {}
5958

6059
# The default groups are only needed in the editor.
61-
if not Util.node_is_part_of_edited_scene(context_node):
60+
if not context_node.is_part_of_edited_scene():
6261
return {}
6362

6463
var groups: Array[String] = _get_edited_scene_groups()

0 commit comments

Comments
 (0)