* fix group entities name position with origin key used

This commit is contained in:
Garux
2018-07-21 22:05:31 +03:00
parent 9643c53990
commit a13ad776b4
3 changed files with 10 additions and 12 deletions

View File

@@ -675,6 +675,7 @@ namespace std
}
}
/// this is only correct for radiant 2d views matrices
inline bool aabb_fits_view( const AABB& aabb, const Matrix4& modelview, const Matrix4& viewport, int ratio ){
const AABB transformed_bounds = aabb_for_oriented_aabb(
AABB( aabb.origin, Vector3( std::max( aabb.extents[0], 8.f ), std::max( aabb.extents[1], 8.f ), std::max( aabb.extents[2], 8.f ) ) ),