Sync with viewer-tiger~
Syncs up llmath stuffs. Thanks to Shyotl for the CMakeLists fix for Wbemuuid.
This commit is contained in:
@@ -1263,7 +1263,7 @@ void LLManipTranslate::renderSnapGuides()
|
||||
// find distance to nearest smallest grid unit
|
||||
F32 offset_nearest_grid_unit = fmodf(dist_grid_axis, smallest_grid_unit_scale);
|
||||
// how many smallest grid units are we away from largest grid scale?
|
||||
S32 sub_div_offset = llround(fmod(dist_grid_axis - offset_nearest_grid_unit, getMinGridScale() / sGridMinSubdivisionLevel) / smallest_grid_unit_scale);
|
||||
S32 sub_div_offset = llround(fmodf(dist_grid_axis - offset_nearest_grid_unit, getMinGridScale() / sGridMinSubdivisionLevel) / smallest_grid_unit_scale);
|
||||
S32 num_ticks_per_side = llmax(1, llfloor(0.5f * guide_size_meters / smallest_grid_unit_scale));
|
||||
|
||||
LLGLDepthTest gls_depth(GL_FALSE);
|
||||
|
||||
Reference in New Issue
Block a user