summaryrefslogtreecommitdiff
path: root/scene/resources/mesh.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-03-27 13:47:15 -0300
committerGitHub <noreply@github.com>2020-03-27 13:47:15 -0300
commit307b1b3a5835ecdb477859785c673a07e248f904 (patch)
treecc0123bc7111e48775331d500452875c278cc13b /scene/resources/mesh.h
parentf48aeeeeefa73d4c6e58ee2934eaf16bc0408df0 (diff)
parentd1acbbce7f123c2b5fccdefc6417787dc91b6ced (diff)
Merge pull request #37340 from reduz/rename-3d-nodes
Make 2D and 3D node names more explicit
Diffstat (limited to 'scene/resources/mesh.h')
-rw-r--r--scene/resources/mesh.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/mesh.h b/scene/resources/mesh.h
index e0cc214301..e5f87dbbe5 100644
--- a/scene/resources/mesh.h
+++ b/scene/resources/mesh.h
@@ -35,7 +35,7 @@
#include "core/math/triangle_mesh.h"
#include "core/resource.h"
#include "scene/resources/material.h"
-#include "scene/resources/shape.h"
+#include "scene/resources/shape_3d.h"
#include "servers/visual_server.h"
class Mesh : public Resource {
@@ -131,8 +131,8 @@ public:
void generate_debug_mesh_lines(Vector<Vector3> &r_lines);
void generate_debug_mesh_indices(Vector<Vector3> &r_points);
- Ref<Shape> create_trimesh_shape() const;
- Ref<Shape> create_convex_shape() const;
+ Ref<Shape3D> create_trimesh_shape() const;
+ Ref<Shape3D> create_convex_shape() const;
Ref<Mesh> create_outline(float p_margin) const;
@@ -146,7 +146,7 @@ public:
static ConvexDecompositionFunc convex_composition_function;
- Vector<Ref<Shape>> convex_decompose() const;
+ Vector<Ref<Shape3D>> convex_decompose() const;
Mesh();
};