Clean repository-owned GDScript warnings
This commit is contained in:
parent
ff536e62a6
commit
1284619079
17 changed files with 60 additions and 74 deletions
|
|
@ -481,4 +481,6 @@ static func _mesh_triangle_count(mesh: ArrayMesh) -> int:
|
|||
if mesh.get_surface_count() == 0:
|
||||
return 0
|
||||
var arrays := mesh.surface_get_arrays(0)
|
||||
return (arrays[Mesh.ARRAY_INDEX] as PackedInt32Array).size() / 3
|
||||
return floori(
|
||||
float((arrays[Mesh.ARRAY_INDEX] as PackedInt32Array).size()) / 3.0
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue