Add clarifying comment.

This commit is contained in:
Zach Fox 2017-07-07 19:19:48 -07:00 committed by GitHub
parent e537c494e5
commit d0c521d7b4

View file

@ -102,6 +102,8 @@ void Image3DOverlay::render(RenderArgs* args) {
Transform transform = getTransform();
bool transformChanged = applyTransformTo(transform, true);
// If the transform is not modified, setting the transform to
// itself will cause drift over time due to floating point errors.
if (transformChanged) {
setTransform(transform);
}