mirror of
https://github.com/Relintai/mesh_data_resource.git
synced 2025-02-20 17:14:31 +01:00
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:
parent
dfd8e93965
commit
8488a033db
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user