diff options
| -rw-r--r-- | .travis.yml | 24 | ||||
| -rw-r--r-- | editor/spatial_editor_gizmos.cpp | 9 | ||||
| -rw-r--r-- | scene/register_scene_types.cpp | 4 | ||||
| -rw-r--r-- | scene/resources/height_map_shape.cpp | 1 | 
4 files changed, 28 insertions, 10 deletions
| diff --git a/.travis.yml b/.travis.yml index b8e02a5be8..587e57c741 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,8 @@ cache:  matrix:    include: -    - env: STATIC_CHECKS=yes +    - name: Static checks (clang-format) +      env: STATIC_CHECKS=yes        os: linux        compiler: gcc        addons: @@ -27,7 +28,8 @@ matrix:            packages:              - clang-format-8 -    - env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc-8 MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" EXTRA_ARGS="module_mono_enabled=yes mono_glue=no warnings=extra werror=yes" +    - name: Linux editor (debug, GCC 8, with Mono) +      env: PLATFORM=x11 TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-mono-gcc-8 MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" EXTRA_ARGS="module_mono_enabled=yes mono_glue=no warnings=extra werror=yes"        os: linux        compiler: gcc-8        addons: @@ -49,7 +51,8 @@ matrix:            build_command: "scons p=x11 -j2 $OPTIONS"            branch_pattern: coverity_scan -    - env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes" +    - name: Linux export template (release, Clang) +      env: PLATFORM=x11 TOOLS=no TARGET=release CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"        os: linux        compiler: clang        addons: @@ -57,19 +60,23 @@ matrix:            packages:              - *linux_deps -    - env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes" +    - name: Android export template (release_debug, Clang) +      env: PLATFORM=android TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-clang EXTRA_ARGS="warnings=extra werror=yes"        os: linux        compiler: clang -    - env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang +    - name: macOS editor (debug, Clang) +      env: PLATFORM=osx TOOLS=yes TARGET=debug CACHE_NAME=${PLATFORM}-tools-clang        os: osx        compiler: clang -    - env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang +    - name: iOS export template (debug, Clang) +      env: PLATFORM=iphone TOOLS=no TARGET=debug CACHE_NAME=${PLATFORM}-clang        os: osx        compiler: clang -    - env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-8 MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" EXTRA_ARGS="warnings=extra werror=yes" +    - name: Linux headless editor (release_debug, GCC 8) +      env: PLATFORM=server TOOLS=yes TARGET=release_debug CACHE_NAME=${PLATFORM}-tools-gcc-8 MATRIX_EVAL="CC=gcc-8 && CXX=g++-8" EXTRA_ARGS="warnings=extra werror=yes"        os: linux        compiler: gcc-8        addons: @@ -80,7 +87,8 @@ matrix:              - *gcc8_deps              - *linux_deps -    - env: PLATFORM=x11 TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-5 +    - name: Linux export template (release_debug, GCC 5, without 3D support) +      env: PLATFORM=x11 TOOLS=no TARGET=release_debug CACHE_NAME=${PLATFORM}-gcc-5 EXTRA_ARGS="disable_3d=yes"        os: linux        compiler: gcc        addons: diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index 104bac190e..67cbcf5de4 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -58,6 +58,7 @@  #include "scene/resources/concave_polygon_shape.h"  #include "scene/resources/convex_polygon_shape.h"  #include "scene/resources/cylinder_shape.h" +#include "scene/resources/height_map_shape.h"  #include "scene/resources/plane_shape.h"  #include "scene/resources/primitive_meshes.h"  #include "scene/resources/ray_shape.h" @@ -3637,6 +3638,14 @@ void CollisionShapeSpatialGizmoPlugin::redraw(EditorSpatialGizmo *p_gizmo) {  		handles.push_back(Vector3(0, 0, rs->get_length()));  		p_gizmo->add_handles(handles, handles_material);  	} + +	if (Object::cast_to<HeightMapShape>(*s)) { + +		Ref<HeightMapShape> hms = s; + +		Ref<ArrayMesh> mesh = hms->get_debug_mesh(); +		p_gizmo->add_mesh(mesh, false, RID(), material); +	}  }  ///// diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index 5440c88fa8..8e6e8e2a53 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -144,7 +144,6 @@  #include "scene/resources/material.h"  #include "scene/resources/mesh.h"  #include "scene/resources/mesh_data_tool.h" -#include "scene/resources/mesh_library.h"  #include "scene/resources/packed_scene.h"  #include "scene/resources/particles_material.h"  #include "scene/resources/physics_material.h" @@ -209,6 +208,7 @@  #include "scene/3d/visibility_notifier.h"  #include "scene/animation/skeleton_ik.h"  #include "scene/resources/environment.h" +#include "scene/resources/mesh_library.h"  #endif  static Ref<ResourceFormatSaverText> resource_saver_text; @@ -468,7 +468,7 @@ void register_scene_types() {  	OS::get_singleton()->yield(); //may take time to init  #endif -	ClassDB::register_class<MeshLibrary>(); +  	AcceptDialog::set_swap_ok_cancel(GLOBAL_DEF("gui/common/swap_ok_cancel", bool(OS::get_singleton()->get_swap_ok_cancel())));  	ClassDB::register_class<Shader>(); diff --git a/scene/resources/height_map_shape.cpp b/scene/resources/height_map_shape.cpp index 8cd271dab0..f763700d52 100644 --- a/scene/resources/height_map_shape.cpp +++ b/scene/resources/height_map_shape.cpp @@ -85,6 +85,7 @@ void HeightMapShape::_update_shape() {  	d["min_height"] = min_height;  	d["max_height"] = max_height;  	PhysicsServer::get_singleton()->shape_set_data(get_shape(), d); +	Shape::_update_shape();  }  void HeightMapShape::set_map_width(int p_new) { |