Skip to content

Commit dd690a8

Browse files
committed
Add special casing for PrimitiveMesh methods which
should not be required, because PrimitiveMesh implements them.
1 parent 3416265 commit dd690a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

godot-codegen/src/special_cases/special_cases.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,22 @@ pub fn get_derived_virtual_method_presence(class_name: &TyName, godot_method_nam
11211121
| ("AudioStreamPlaybackResampled", "_mix")
11221122
=> VirtualMethodPresence::Remove,
11231123

1124+
| ("PrimitiveMesh", "_get_surface_count")
1125+
| ("PrimitiveMesh", "_surface_get_array_len")
1126+
| ("PrimitiveMesh", "_surface_get_array_index_len")
1127+
| ("PrimitiveMesh", "_surface_get_arrays")
1128+
| ("PrimitiveMesh", "_surface_get_blend_shape_arrays")
1129+
| ("PrimitiveMesh", "_surface_get_lods")
1130+
| ("PrimitiveMesh", "_surface_get_format")
1131+
| ("PrimitiveMesh", "_surface_get_primitive_type")
1132+
| ("PrimitiveMesh", "_surface_set_material")
1133+
| ("PrimitiveMesh", "_surface_get_material")
1134+
| ("PrimitiveMesh", "_get_blend_shape_count")
1135+
| ("PrimitiveMesh", "_get_blend_shape_name")
1136+
| ("PrimitiveMesh", "_set_blend_shape_name")
1137+
| ("PrimitiveMesh", "_get_aabb")
1138+
=> VirtualMethodPresence::Override { is_required: false },
1139+
11241140
// Default: inherit presence from base class.
11251141
_ => VirtualMethodPresence::Inherit,
11261142
}

0 commit comments

Comments
 (0)