Skip to content

Commit

Permalink
temporarily disable more specific class_name matching as it was causi…
Browse files Browse the repository at this point in the history
…ng troubles
  • Loading branch information
tom95 committed Jul 2, 2023
1 parent e423980 commit afec720
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addons/pronto/helpers/Utils.gd
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ static func log(s):

static func get_specific_class_name(node: Node):
# See https://github.com/godotengine/godot/issues/21789.
var name := node.to_string()
if name.match("?*:?*"):
return name.split(":")[0]
# var name := node.to_string()
# if name.match("?*:?*"):
# return name.split(":")[0]
return node.get_class()

const TYPE_NAMES = ['nil', 'bool', 'int', 'float', 'String', 'Vector2', 'Vector2I', 'Rect2', 'Rect2i', 'Vector3', 'Vector3i', 'Transform2D', 'Vector4', 'Vector4i', 'Plane', 'Quaternion', 'AABB', 'Basis', 'Transform3D', 'Projection', 'Color', 'StringName', 'NodePath', 'RID', 'Object', 'Callable', 'Signal', 'Dictionary', 'Array', 'PackedByteArray', 'PackedInt32Array', 'PackedInt64Array', 'PackedFloat32Array', 'PackedFloat64Array', 'PackedStringArray', 'PackedVector2Array', 'PackedVector3Array', 'PackedColorArray']
Expand Down

0 comments on commit afec720

Please sign in to comment.