diff options
author | Juan Linietsky <reduzio@gmail.com> | 2019-09-14 00:37:42 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 12:01:22 +0100 |
commit | 6deffa62fbd1e91873afa663630b788b9ffabee3 (patch) | |
tree | e77c1a67c8b8ddb64429280131502f64c8cd8e8c /scene/main | |
parent | 9d7b7f931b6924399903e4954a0c32d59c15d4c3 (diff) |
Several fixes to 3D rendering, and multimesh implementation.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 976c66ad0c..19edf556fb 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -300,7 +300,7 @@ void Viewport::_notification(int p_what) { //3D PhysicsServer::get_singleton()->space_set_debug_contacts(find_world()->get_space(), get_tree()->get_collision_debug_contact_count()); contact_3d_debug_multimesh = VisualServer::get_singleton()->multimesh_create(); - VisualServer::get_singleton()->multimesh_allocate(contact_3d_debug_multimesh, get_tree()->get_collision_debug_contact_count(), VS::MULTIMESH_TRANSFORM_3D, VS::MULTIMESH_COLOR_8BIT); + VisualServer::get_singleton()->multimesh_allocate(contact_3d_debug_multimesh, get_tree()->get_collision_debug_contact_count(), VS::MULTIMESH_TRANSFORM_3D, true); VisualServer::get_singleton()->multimesh_set_visible_instances(contact_3d_debug_multimesh, 0); VisualServer::get_singleton()->multimesh_set_mesh(contact_3d_debug_multimesh, get_tree()->get_debug_contact_mesh()->get_rid()); contact_3d_debug_instance = VisualServer::get_singleton()->instance_create(); |