diff options
author | Julian Murgia <the.straton@gmail.com> | 2017-10-11 17:45:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-11 17:45:19 +0200 |
commit | 819d9339c35ff6f44731f9ae42c2a3bbffd15927 (patch) | |
tree | 313a85f2f96a705c7a543d93e67e498ed4694243 /servers | |
parent | 409e58e67abde4e7af6e43b32c23338e119377fb (diff) |
Bind VisualServer.sync() method to GDScript
This function is needed in Escoria's resource queue (https://github.com/godotengine/escoria/blob/master/device/globals/resource_queue.gd#L94)
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp index 47a5f4c7f3..2b34aa0e42 100644 --- a/servers/visual_server.cpp +++ b/servers/visual_server.cpp @@ -1445,6 +1445,7 @@ Array VisualServer::mesh_surface_get_blend_shape_arrays(RID p_mesh, int p_surfac void VisualServer::_bind_methods() { + ClassDB::bind_method(D_METHOD("force_sync"), &VisualServer::sync); ClassDB::bind_method(D_METHOD("force_draw"), &VisualServer::draw); ClassDB::bind_method(D_METHOD("texture_create"), &VisualServer::texture_create); ClassDB::bind_method(D_METHOD("texture_create_from_image", "image", "flags"), &VisualServer::texture_create_from_image, DEFVAL(TEXTURE_FLAGS_DEFAULT)); |