mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Fix handle selection types when the mesh data instance is not at origin.
This commit is contained in:
parent
06f1785695
commit
72fec658ac
@ -236,6 +236,10 @@ func is_point_visible(point_orig : Vector3, camera_pos : Vector3, gt : Transform
|
||||
var v1 : Vector3 = _vertices[i1]
|
||||
var v2 : Vector3 = _vertices[i2]
|
||||
|
||||
v0 = gt.xform(v0)
|
||||
v1 = gt.xform(v1)
|
||||
v2 = gt.xform(v2)
|
||||
|
||||
var res = Geometry.ray_intersects_triangle(point, dir, v0, v1, v2)
|
||||
|
||||
if res is Vector3:
|
||||
|
Loading…
Reference in New Issue
Block a user