| 436 | } |
| 437 | |
| 438 | void Tr2ScalingTool::UpdateLines() |
| 439 | { |
| 440 | Vector3 wCenter = m_wBox->GetCenterOfMass(); |
| 441 | // x |
| 442 | m_xLine->ClearLines(); |
| 443 | m_xLine->AddLine( wCenter, |
| 444 | v4LightGray, |
| 445 | m_xBox->GetCenterOfMass(), |
| 446 | v4LightGray ); |
| 447 | m_xLine->SubmitChanges(); |
| 448 | |
| 449 | // y |
| 450 | m_yLine->ClearLines(); |
| 451 | m_yLine->AddLine( wCenter, |
| 452 | v4LightGray, |
| 453 | m_yBox->GetCenterOfMass(), |
| 454 | v4LightGray ); |
| 455 | m_yLine->SubmitChanges(); |
| 456 | |
| 457 | // z |
| 458 | m_zLine->ClearLines(); |
| 459 | m_zLine->AddLine( wCenter, |
| 460 | v4LightGray, |
| 461 | m_zBox->GetCenterOfMass(), |
| 462 | v4LightGray ); |
| 463 | m_zLine->SubmitChanges(); |
| 464 | } |
| 465 | |
| 466 | void Tr2ScalingTool::ResetPrimitives() |
| 467 | { |
nothing calls this directly
no test coverage detected