From dfd8e93965f9d98eabb2544071027d00a935c3c7 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 14 Aug 2021 15:15:21 +0200 Subject: [PATCH] MeshDataInstance now inherits from GeometryInstance. This way the portal culling system recognizes them on room conversion. They still don't get turned on/off properly yet. --- nodes/mesh_data_instance.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes/mesh_data_instance.h b/nodes/mesh_data_instance.h index 824ae15..6174377 100644 --- a/nodes/mesh_data_instance.h +++ b/nodes/mesh_data_instance.h @@ -42,8 +42,8 @@ SOFTWARE. class PropInstance; -class MeshDataInstance : public VisualInstance { - GDCLASS(MeshDataInstance, VisualInstance); +class MeshDataInstance : public GeometryInstance { + GDCLASS(MeshDataInstance, GeometryInstance); public: bool get_snap_to_mesh() const;