| 362 | } |
| 363 | |
| 364 | void MoveObjectByMouseImpl::applyCurrentXf_() |
| 365 | { |
| 366 | const bool appendHistory = historyEnabled_ && !xfChanged_; |
| 367 | std::unique_ptr<ScopeHistory> scope = appendHistory ? std::make_unique<ScopeHistory>( _t( "Move Object" ) ) : nullptr; |
| 368 | auto itXf = initialXfs_.begin(); |
| 369 | changingXfFromMouseMove_ = true; |
| 370 | for ( std::shared_ptr<Object>& obj : objects_ ) |
| 371 | { |
| 372 | if ( appendHistory ) |
| 373 | AppendHistory<ChangeXfAction>( obj->name(), obj ); |
| 374 | obj->setWorldXf( currentXf_ * *itXf++ ); |
| 375 | } |
| 376 | changingXfFromMouseMove_ = false; |
| 377 | xfChanged_ = true; |
| 378 | } |
| 379 | |
| 380 | void MoveObjectByMouseImpl::setVisualizeVectors_( std::vector<Vector3f> worldPoints ) |
| 381 | { |
nothing calls this directly
no test coverage detected