Skip to content

Add type support #10

Description

@Xinart

Describe the bug

When the addon is downloaded it crashes when using Godot with GDScript strict typing mode.

To Reproduce

  1. Active GDScript strict typing mode on Godot with the following settings setted
Image Image
  1. Download the Godot addon from the AssetLib

Expected behavior

The Output show this :
ERROR: res://addons/antialiased_line2d/antialiased_line2d.gd:8 - Parse Error: Identifier "AntialiasedLine2DTexture" not declared in the current scope.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/antialiased_line2d/antialiased_line2d.gd" with error "Parse error".
ERROR: res://addons/antialiased_line2d/antialiased_polygon2d.gd:18 - Parse Error: Identifier "AntialiasedLine2DTexture" not declared in the current scope.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/antialiased_line2d/antialiased_polygon2d.gd" with error "Parse error".
ERROR: res://addons/antialiased_line2d/antialiased_regular_polygon2d.gd:21 - Parse Error: Identifier "AntialiasedLine2DTexture" not declared in the current scope.
ERROR: modules/gdscript/gdscript.cpp:3041 - Failed to load script "res://addons/antialiased_line2d/antialiased_regular_polygon2d.gd" with error "Parse error".

Software used

OS: Windows 11
Godot: Version 4.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions