Skip to content

Commit f341cda

Browse files
fix: Ensure GDScript singleton class accessors/modifiers are static.
Fixes #99
1 parent abce9e2 commit f341cda

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/small-emus-notice.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@godot-js/editor": patch
3+
---
4+
5+
**Fix/Types:** Ensure GDScript singleton class accessors/modifiers are `static`.
6+
7+
Fixes https://github.com/godotjs/GodotJS/issues/99

scripts/jsb.editor/src/jsb.editor.codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,7 @@ export class TSDCodeGen {
34383438
}
34393439

34403440
for (let property_info of cls.properties) {
3441-
class_cg.property_(property_info);
3441+
class_cg.property_(property_info, singleton_mode);
34423442
if (property_info.internal_name !== property_info.name) {
34433443
godot_name_overrides[property_info.internal_name] = property_info.name;
34443444
}

0 commit comments

Comments
 (0)