X Tutup
Skip to content

Editor: Fix "ERROR: Cannot get class" on scripts without class_name#113160

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
MattiaZir:fix-unable-to-get-class
Nov 26, 2025
Merged

Editor: Fix "ERROR: Cannot get class" on scripts without class_name#113160
akien-mga merged 1 commit intogodotengine:masterfrom
MattiaZir:fix-unable-to-get-class

Conversation

@MattiaZir
Copy link
Contributor

This checks if the class exists or is a global class before checking if it's virtual or instantiable.

It should fix #112951 without any side effects.

@MattiaZir MattiaZir requested a review from a team November 25, 2025 20:03
@YeldhamDev YeldhamDev added this to the 4.6 milestone Nov 26, 2025
Copy link
Member

@YeldhamDev YeldhamDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue on my end.

@AThousandShips

This comment was marked as resolved.

@AThousandShips AThousandShips added cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release and removed cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Nov 26, 2025
@akien-mga akien-mga changed the title Editor: Fix "ERROR: Cannot get class" Editor: Fix "ERROR: Cannot get class" on scripts without class_name Nov 26, 2025
@akien-mga akien-mga merged commit 21af1e2 into godotengine:master Nov 26, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@MattiaZir MattiaZir deleted the fix-unable-to-get-class branch November 26, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERROR: Cannot get class on a script with empty class_name

4 participants

X Tutup