Temporarily set MeshDataInstance's portal mode to PORTAL_MODE_GLOBAL on creation. This disables portal culling for it by default, as it turns out portal culling doesn't work with custom (and even some built in engine class) GeometryInstances yet.

This commit is contained in:
Relintai 2021-08-14 16:57:29 +02:00
parent dfd8e93965
commit 8488a033db

View File

@ -204,6 +204,8 @@ MeshDataInstance::MeshDataInstance() {
_snap_to_mesh = false;
_snap_axis = Vector3(0, -1, 0);
set_portal_mode(PORTAL_MODE_GLOBAL);
//set_notify_transform(true);
}
MeshDataInstance::~MeshDataInstance() {