Skip to content

Commit 9b16953

Browse files
committed
[FIX] Adds missing get_global_name method
1 parent 1216d8d commit 9b16953

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

javascript.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ bool JavaScript::can_instantiate() const {
2323
#endif
2424
}
2525

26+
StringName JavaScript::get_global_name() const {
27+
return StringName();
28+
}
29+
2630
StringName JavaScript::get_instance_base_type() const {
2731
static StringName empty;
2832
ERR_FAIL_NULL_V(javascript_class, empty);

javascript.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class JavaScript : public Script {
4343
virtual Ref<Script> get_base_script() const override { return nullptr; }
4444
virtual bool inherits_script(const Ref<Script> &p_script) const override { return false; }
4545

46+
StringName get_global_name() const override;
4647
virtual StringName get_instance_base_type() const override;
4748
virtual ScriptInstance *instance_create(Object *p_this) override;
4849
virtual PlaceHolderScriptInstance *placeholder_instance_create(Object *p_this) override;

0 commit comments

Comments
 (0)