File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.6.1
2
+
3
+ - Fix ` Variant.cast ` to correctly return null in cases where the Variant is null.
4
+
1
5
## 0.6.0
2
6
3
7
- Adjust generate global constats to avoid unnecessary prefixes.
Original file line number Diff line number Diff line change @@ -197,8 +197,8 @@ class Variant implements Finalizable {
197
197
var typeInfo = gde.dartBindings.getGodotTypeInfo (T );
198
198
return convertFromVariant (this , typeInfo) as T ? ;
199
199
}
200
- final obj = convertFromVariant (this , GodotObject .sTypeInfo) as GodotObject ;
201
- return obj.cast <T >();
200
+ final obj = convertFromVariant (this , GodotObject .sTypeInfo) as GodotObject ? ;
201
+ return obj? .cast <T >();
202
202
}
203
203
204
204
void _attachFinalizer () {
Original file line number Diff line number Diff line change 1
1
name : godot_dart
2
2
description : Dart bindings for the Godot game engine
3
3
repository : https://github.com/fuzzybinary/godot_dart
4
- version : 0.6.0
4
+ version : 0.6.1
5
5
6
6
environment :
7
7
sdk : ' >=3.2.0 <4.0.0'
You can’t perform that action at this time.
0 commit comments