diff options
author | reduz <reduzio@gmail.com> | 2021-05-10 13:12:44 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-05-11 11:21:36 -0300 |
commit | 479391ef5405226fa110ac3f5823ecbc7d987b0c (patch) | |
tree | 427b8179758b35cfc859d1e6fb853a4d60e086d5 /servers/rendering_server.cpp | |
parent | a1cc6b45dca33982003e5646903df1453e2ab3ae (diff) | |
download | redot-engine-479391ef5405226fa110ac3f5823ecbc7d987b0c.tar.gz |
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.
Diffstat (limited to 'servers/rendering_server.cpp')
-rw-r--r-- | servers/rendering_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index a9154603ee..49990407e3 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -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; |