@@ -13,7 +13,7 @@ use godot::classes::{
1313use godot:: global:: { godot_error, godot_print, godot_warn, PropertyUsageFlags } ;
1414use godot:: meta:: { MethodInfo , PropertyInfo , ToGodot } ;
1515use godot:: obj:: script:: create_script_instance;
16- use godot:: obj:: { EngineBitfield , EngineEnum , InstanceId , WithBaseField } ;
16+ use godot:: obj:: { EngineBitfield , InstanceId , WithBaseField } ;
1717use godot:: prelude:: {
1818 godot_api, Array , Base , Callable , Dictionary , GString , Gd , GodotClass , StringName , Variant ,
1919 VariantArray ,
@@ -183,7 +183,7 @@ impl IScriptExtension for RustScript {
183183 false
184184 }
185185
186- unsafe fn instance_create ( & self , mut for_object : Gd < Object > ) -> * mut c_void {
186+ unsafe fn instance_create_rawptr ( & self , mut for_object : Gd < Object > ) -> * mut c_void {
187187 self . owners . borrow_mut ( ) . insert ( for_object. instance_id ( ) ) ;
188188
189189 let data = self . create_remote_instance ( for_object. clone ( ) ) ;
@@ -203,7 +203,7 @@ impl IScriptExtension for RustScript {
203203 create_script_instance ( instance, for_object)
204204 }
205205
206- unsafe fn placeholder_instance_create ( & self , for_object : Gd < Object > ) -> * mut c_void {
206+ unsafe fn placeholder_instance_create_rawptr ( & self , for_object : Gd < Object > ) -> * mut c_void {
207207 self . owners . borrow_mut ( ) . insert ( for_object. instance_id ( ) ) ;
208208
209209 let placeholder = RustScriptPlaceholder :: new ( self . to_gd ( ) ) ;
0 commit comments