Skip to content

Bullet ray picking should ignore objects with input_ray_pickable=false

Rafał Mikrut requested to merge github/fork/JPTeasdale/input-picking-bug into master

Created by: JPTeasdale

This is a fix for https://github.com/godotengine/godot/issues/21194

You can see in the code that if m_pickRay is true, gObj->is_ray_pickable() is false, and m_exclude->has(gObj->get_self()) is false then the function will return true which is not desired because gObj->is_ray_pickable() is false.

Testing notes: I recompiled the engine and ran the Picking Problem project posted in the task. All picks performed as expected.

Merge request reports