aboutsummaryrefslogtreecommitdiff
path: root/main/tests/test_physics.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-11-09 23:34:01 -0300
committerJuan Linietsky2017-11-09 23:35:34 -0300
commit192a4d7de5c557bdfe83bd180cd603d7e280ebd4 (patch)
tree94ce9779b3f84fbc320ba83624e326d487ca1c04 /main/tests/test_physics.cpp
parent0de6cba7e7e114f71fabb3dbe02cf260f7d3e2c6 (diff)
downloadgodot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.gz
godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.tar.zst
godot-192a4d7de5c557bdfe83bd180cd603d7e280ebd4.zip
Diffstat (limited to 'main/tests/test_physics.cpp')
-rw-r--r--main/tests/test_physics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/tests/test_physics.cpp b/main/tests/test_physics.cpp
index f14982192..1c5047054 100644
--- a/main/tests/test_physics.cpp
+++ b/main/tests/test_physics.cpp
@@ -299,7 +299,7 @@ public:
VisualServer *vs = VisualServer::get_singleton();
/* LIGHT */
- RID lightaux = vs->light_create(VisualServer::LIGHT_DIRECTIONAL);
+ RID lightaux = vs->directional_light_create();
scenario = vs->scenario_create();
vs->light_set_shadow(lightaux, true);
light = vs->instance_create2(lightaux, scenario);