File tree 3 files changed +8
-4
lines changed
dart/godot_dart/lib/src/variant
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ class GodotDartEditorPlugin : public godot::EditorPlugin {
15
15
GodotDartEditorPlugin ();
16
16
~GodotDartEditorPlugin ();
17
17
18
- virtual void _enter_tree () override ;
19
- virtual void _exit_tree () override ;
18
+ void _enter_tree () override ;
19
+ void _exit_tree () override ;
20
20
21
21
bool run_pub_get ();
22
22
bool run_build_runner ();
Original file line number Diff line number Diff line change @@ -249,7 +249,11 @@ bool DartScript::_is_tool() const {
249
249
250
250
godot::StringName DartScript::_get_instance_base_type () const {
251
251
GodotDartBindings *bindings = GodotDartBindings::instance ();
252
- if (bindings == nullptr || _dart_type == nullptr ) {
252
+ if (bindings == nullptr ) {
253
+ return godot::StringName ();
254
+ }
255
+ const_cast <DartScript *>(this )->refresh_type (false );
256
+ if (_dart_type == nullptr ) {
253
257
return godot::StringName ();
254
258
}
255
259
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ class Variant implements Finalizable {
196
196
}
197
197
198
198
T ? cast <T >() {
199
- if (T is BuiltinType ) {
199
+ if (< T > [] is List < BuiltinType > ) {
200
200
var typeInfo = gde.dartBindings.getGodotTypeInfo (T );
201
201
return convertFromVariant (this , typeInfo) as T ? ;
202
202
}
You can’t perform that action at this time.
0 commit comments