summaryrefslogtreecommitdiff
path: root/servers/visual_server.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-25 20:33:37 +0200
committerGitHub <noreply@github.com>2018-07-25 20:33:37 +0200
commit237148e80f4af141049eeee033f7e60310ece8dc (patch)
treee73da79cfdb2f32383c67aa28a8bde372d36aef4 /servers/visual_server.cpp
parentbacc02b7d810e5ba98d93e441861843d29016110 (diff)
parent35eb7f2d6a1f872435dad3a295dc8b93721086aa (diff)
Merge pull request #18368 from Gamblify/RasterizerEngineSync
sync rasterizers with engine
Diffstat (limited to 'servers/visual_server.cpp')
-rw-r--r--servers/visual_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp
index 1f3319dc04..95b181ff47 100644
--- a/servers/visual_server.cpp
+++ b/servers/visual_server.cpp
@@ -1648,13 +1648,13 @@ Array VisualServer::_mesh_surface_get_skeleton_aabb_bind(RID p_mesh, int p_surfa
void VisualServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("force_sync"), &VisualServer::sync);
- ClassDB::bind_method(D_METHOD("force_draw", "swap_buffers"), &VisualServer::draw, DEFVAL(true));
+ ClassDB::bind_method(D_METHOD("force_draw", "swap_buffers", "frame_step"), &VisualServer::draw, DEFVAL(true), DEFVAL(0.0));
// "draw" and "sync" are deprecated duplicates of "force_draw" and "force_sync"
// FIXME: Add deprecation messages using GH-4397 once available, and retire
// once the warnings have been enabled for a full release cycle
ClassDB::bind_method(D_METHOD("sync"), &VisualServer::sync);
- ClassDB::bind_method(D_METHOD("draw", "swap_buffers"), &VisualServer::draw, DEFVAL(true));
+ ClassDB::bind_method(D_METHOD("draw", "swap_buffers", "frame_step"), &VisualServer::draw, DEFVAL(true), DEFVAL(0.0));
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));