From e46c24ea58cae7e7b4556b9e83dd8b689e135e4a Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Thu, 28 May 2015 10:27:59 -0700 Subject: [PATCH] code review --- .../entities-renderer/src/RenderablePolyVoxEntityItem.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp index 933b7ad1ef..977a6511c8 100644 --- a/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderablePolyVoxEntityItem.cpp @@ -268,8 +268,10 @@ bool RenderablePolyVoxEntityItem::findDetailedRayIntersection(const glm::vec3& o RaycastFunctor callback; raycastResult = PolyVox::raycastWithDirection(_volData, start, pvDirection, callback); - if (raycastResult == PolyVox::RaycastResults::Completed) // the ray completed its path -- nothing was hit. + if (raycastResult == PolyVox::RaycastResults::Completed) { + // the ray completed its path -- nothing was hit. return false; + } glm::vec4 intersectedWorldPosition = voxelToWorldMatrix() * callback._result;