| 218 | } |
| 219 | |
| 220 | static bool CopyMatrixToTriMatrix( void* srcVar, void* dstVar, float /*scale*/, const Vector4& /*offset*/ ) |
| 221 | { |
| 222 | if( ITriMatrixPtr mp = BlueCastPtr( static_cast<IRoot*>( srcVar ) ) ) |
| 223 | { |
| 224 | auto src = static_cast<Matrix*>( srcVar ); |
| 225 | auto dst = mp->GetMatrix(); |
| 226 | if( *src != *dst ) |
| 227 | { |
| 228 | mp->SetMatrix( static_cast<Matrix*>( srcVar ) ); |
| 229 | return true; |
| 230 | } |
| 231 | } |
| 232 | return false; |
| 233 | } |
| 234 | |
| 235 | static bool CopyVector3ToTriVector( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 236 | { |