From 325bf680410e8012394e5f3ba5ba947c69034899 Mon Sep 17 00:00:00 2001 From: Dániel Juhász Date: Thu, 16 Aug 2018 20:10:08 +0200 Subject: Raycast: export exact pointing location (#6304) * Return intersection point in node coordinates. * Clarify 'intersection_point' documentation --- src/script/cpp_api/s_item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/cpp_api/s_item.cpp') diff --git a/src/script/cpp_api/s_item.cpp b/src/script/cpp_api/s_item.cpp index 94abe267b..cbdfcf1b1 100644 --- a/src/script/cpp_api/s_item.cpp +++ b/src/script/cpp_api/s_item.cpp @@ -255,10 +255,10 @@ bool ScriptApiItem::getItemCallback(const char *name, const char *callbackname, return false; } -void ScriptApiItem::pushPointedThing(const PointedThing& pointed) +void ScriptApiItem::pushPointedThing(const PointedThing &pointed, bool hitpoint) { lua_State* L = getStack(); - push_pointed_thing(L, pointed); + push_pointed_thing(L, pointed, false, hitpoint); } -- cgit v1.2.3