You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user