| 1450 | } |
| 1451 | |
| 1452 | bool LevelImpl::saveScene(Scene* scene) |
| 1453 | { |
| 1454 | #if USE_EDITOR |
| 1455 | const auto path = scene->GetPath(); |
| 1456 | if (path.IsEmpty()) |
| 1457 | { |
| 1458 | LOG(Error, "Missing scene path."); |
| 1459 | return true; |
| 1460 | } |
| 1461 | |
| 1462 | return saveScene(scene, path); |
| 1463 | #else |
| 1464 | LOG(Error, "Cannot save data to the cooked content."); |
| 1465 | return false; |
| 1466 | #endif |
| 1467 | } |
| 1468 | |
| 1469 | bool LevelImpl::saveScene(Scene* scene, const String& path) |
| 1470 | { |
nothing calls this directly
no test coverage detected