| 500 | //----------------------------------------------------------------------------- |
| 501 | |
| 502 | void WorldEditorSelection::scale(const VectorF & scale) |
| 503 | { |
| 504 | for( iterator iter = begin(); iter != end(); ++ iter ) |
| 505 | { |
| 506 | SceneObject* object = dynamic_cast< SceneObject* >( *iter ); |
| 507 | if( !object ) |
| 508 | continue; |
| 509 | |
| 510 | VectorF current = object->getScale(); |
| 511 | current.convolve(scale); |
| 512 | |
| 513 | // clamp scale to sensible limits |
| 514 | current.setMax( Point3F( 0.01f ) ); |
| 515 | current.setMin( Point3F( 1000.0f ) ); |
| 516 | |
| 517 | object->setScale(current); |
| 518 | } |
| 519 | |
| 520 | mCentroidValid = false; |
| 521 | } |
| 522 | |
| 523 | //----------------------------------------------------------------------------- |
| 524 |
nothing calls this directly
no test coverage detected