X Tutup
Skip to content

GDScript: Make check for exposed classes more consistent#91617

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
vnen:gdscript-only-check-exposed-classes
Nov 25, 2025
Merged

GDScript: Make check for exposed classes more consistent#91617
Repiteo merged 1 commit intogodotengine:masterfrom
vnen:gdscript-only-check-exposed-classes

Conversation

@vnen
Copy link
Member

@vnen vnen commented May 6, 2024

Some places were already checking if classes from ClassDB were exposed, while others didn't. This makes the check more consistent to avoid disparities which can lead to crashes.

Fix #91308

@vnen vnen added this to the 4.3 milestone May 6, 2024
@vnen vnen requested a review from a team as a code owner May 6, 2024 14:23
Copy link
Member

@HolonProduction HolonProduction left a comment

Choose a reason for hiding this comment

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

No need to call it twice, or am I missing something?

@vnen vnen force-pushed the gdscript-only-check-exposed-classes branch from 3c0d354 to 3331f4c Compare July 8, 2024 17:24
@vnen
Copy link
Member Author

vnen commented Jul 8, 2024

Applied suggestions by @HolonProduction (thanks!)

@KoBeWi KoBeWi modified the milestones: 4.3, 4.4 Jul 30, 2024
@Repiteo Repiteo modified the milestones: 4.4, 4.5 Feb 24, 2025
@Repiteo Repiteo modified the milestones: 4.5, 4.6 Sep 8, 2025
Copy link
Member

@HolonProduction HolonProduction left a comment

Choose a reason for hiding this comment

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

The changes make sense to me.
The above comment about the include in the header file still stands as far as I can see.

Some places were already checking if classes from ClassDB were exposed,
while others didn't. This makes the check more consistent to avoid
disparities which can lead to crashes.
@vnen vnen force-pushed the gdscript-only-check-exposed-classes branch from 3331f4c to 501c5b0 Compare November 25, 2025 15:24
@Repiteo Repiteo merged commit 231adb0 into godotengine:master Nov 25, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 25, 2025

Thanks!

@vnen vnen deleted the gdscript-only-check-exposed-classes branch November 25, 2025 16:21
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.

Crash when calling a static method in a @tool script

5 participants

X Tutup