You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
-Fixes from source code analyzizer, closes #1768
This commit is contained in:
@@ -191,7 +191,7 @@ class TestPhysics2DMainLoop : public MainLoop {
|
||||
|
||||
Image image(convex_png);
|
||||
|
||||
body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].image=vs->texture_create_from_image(image);
|
||||
body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].image=vs->texture_create_from_image(image);
|
||||
|
||||
RID convex_polygon_shape = ps->shape_create(Physics2DServer::SHAPE_CONVEX_POLYGON);
|
||||
|
||||
@@ -206,7 +206,7 @@ class TestPhysics2DMainLoop : public MainLoop {
|
||||
arr.push_back(Point2(11,7)-sb);
|
||||
ps->shape_set_data(convex_polygon_shape,arr);
|
||||
|
||||
body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].shape = convex_polygon_shape;
|
||||
body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].shape = convex_polygon_shape;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user