diff --git a/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.cpp b/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.cpp index 8acd5ef16..c37aff66b 100644 --- a/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.cpp +++ b/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.cpp @@ -1768,10 +1768,10 @@ void GuiConvexEditorCtrl::submitUndo( UndoType type, const Vector mIsDirty = true; } -bool GuiConvexEditorCtrl::_cursorCastCallback( RayInfo* ri ) +bool GuiConvexEditorCtrl::_cursorCastCallback( SceneObject* object ) { // Reject anything that's not a ConvexShape. - return dynamic_cast< ConvexShape* >( ri->object ); + return dynamic_cast< ConvexShape* >( object ); } bool GuiConvexEditorCtrl::_cursorCast( const Gui3DMouseEvent &event, ConvexShape **hitShape, S32 *hitFace ) diff --git a/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h b/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h index 1600a4e50..1c64e964a 100644 --- a/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h +++ b/Engine/source/gui/worldEditor/guiConvexShapeEditorCtrl.h @@ -169,7 +169,7 @@ protected: void _renderObject( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance *matInst ); bool _cursorCast( const Gui3DMouseEvent &event, ConvexShape **hitShape, S32 *hitFace ); - static bool _cursorCastCallback( RayInfo* ri ); + static bool _cursorCastCallback( SceneObject* object ); protected: diff --git a/Engine/source/scene/sceneContainer.cpp b/Engine/source/scene/sceneContainer.cpp index 024d833aa..57bb9760b 100644 --- a/Engine/source/scene/sceneContainer.cpp +++ b/Engine/source/scene/sceneContainer.cpp @@ -318,10 +318,9 @@ struct SceneRayHelper xformedEnd.convolveInverse(ptr->mObjScale); RayInfo ri; - ri.object = ptr; ri.generateTexCoord = info->generateTexCoord; - if (mFunc && !mFunc(&ri)) + if (mFunc && !mFunc(ptr)) return false; bool result = false; diff --git a/Engine/source/scene/sceneContainer.h b/Engine/source/scene/sceneContainer.h index ce6f6a023..9892a3bc5 100644 --- a/Engine/source/scene/sceneContainer.h +++ b/Engine/source/scene/sceneContainer.h @@ -668,7 +668,7 @@ class SceneContainer /// @name Line intersection /// @{ - typedef bool ( *CastRayCallback )( RayInfo* ri ); + typedef bool ( *CastRayCallback )( SceneObject* object ); /// Test against collision geometry -- fast. bool castRay( const Point3F &start, const Point3F &end, U32 mask, RayInfo* info, CastRayCallback callback = NULL );