| 350 | } |
| 351 | |
| 352 | bool ManagedEditor::CanAutoBuildCSG() |
| 353 | { |
| 354 | if (!ManagedEditorOptions.AutoRebuildCSG) |
| 355 | return false; |
| 356 | |
| 357 | // Skip calls from non-managed thread (eg. physics worker) |
| 358 | if (!MCore::Thread::IsAttached()) |
| 359 | return false; |
| 360 | |
| 361 | if (!HasManagedInstance()) |
| 362 | return false; |
| 363 | if (Internal_CanAutoBuildCSG == nullptr) |
| 364 | { |
| 365 | Internal_CanAutoBuildCSG = GetClass()->GetMethod("Internal_CanAutoBuildCSG"); |
| 366 | ASSERT(Internal_CanAutoBuildCSG); |
| 367 | } |
| 368 | return MUtils::Unbox<bool>(Internal_CanAutoBuildCSG->Invoke(GetManagedInstance(), nullptr, nullptr)); |
| 369 | } |
| 370 | |
| 371 | bool ManagedEditor::CanAutoBuildNavMesh() |
| 372 | { |
no test coverage detected