| 233 | } |
| 234 | |
| 235 | static bool CopyVector3ToTriVector( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 236 | { |
| 237 | if( ITriVectorPtr vp = BlueCastPtr( static_cast<IRoot*>( srcVar ) ) ) |
| 238 | { |
| 239 | Vector3 src = *static_cast<Vector3*>( srcVar ) * scale + offset.GetXYZ(); |
| 240 | auto dest = *vp->GetVector(); |
| 241 | if( src != dest ) |
| 242 | { |
| 243 | vp->SetXYZ( src.x, src.y, src.z ); |
| 244 | return true; |
| 245 | } |
| 246 | } |
| 247 | return false; |
| 248 | } |
| 249 | |
| 250 | static bool CopyFloatArrayToTriColor( void* srcVar, void* dstVar, float scale, const Vector4& offset ) |
| 251 | { |