| 215 | } |
| 216 | |
| 217 | void Scene::CreateCsgModel() |
| 218 | { |
| 219 | // Create model |
| 220 | auto result = New<StaticModel>(); |
| 221 | result->SetStaticFlags(StaticFlags::FullyStatic); |
| 222 | result->SetName(String(CSG_MODEL_NAME)); |
| 223 | result->Model = CSGData.Model; |
| 224 | result->HideFlags |= HideFlags::DontSelect; |
| 225 | |
| 226 | // Link it |
| 227 | if (IsDuringPlay()) |
| 228 | { |
| 229 | result->SetParent(this, false); |
| 230 | } |
| 231 | else |
| 232 | { |
| 233 | result->_parent = this; |
| 234 | result->_scene = this; |
| 235 | Children.Add(result); |
| 236 | result->CreateManaged(); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | void Scene::OnCsgCollisionDataChanged() |
| 241 | { |
nothing calls this directly
no test coverage detected