mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fixes missng 2D engine bits
-Mesh2D now works -MultiMesh2D now works -Polygon2D now works -Added hooks for processing 2D particles -Skeleton2D now works 2D particles still not working, but stuff needed for it is now implemented.
This commit is contained in:
parent
a1cc6b45dc
commit
479391ef54
18 changed files with 395 additions and 308 deletions
|
@ -858,8 +858,10 @@ Error RenderingServer::mesh_create_surface_data_from_arrays(SurfaceData *r_surfa
|
|||
case Variant::PACKED_VECTOR2_ARRAY: {
|
||||
Vector<Vector2> v2 = p_arrays[i];
|
||||
array_len = v2.size();
|
||||
format |= ARRAY_FLAG_USE_2D_VERTICES;
|
||||
} break;
|
||||
case Variant::PACKED_VECTOR3_ARRAY: {
|
||||
ERR_FAIL_COND_V(p_compress_format & ARRAY_FLAG_USE_2D_VERTICES, ERR_INVALID_PARAMETER);
|
||||
Vector<Vector3> v3 = p_arrays[i];
|
||||
array_len = v3.size();
|
||||
} break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue