Skip to content

Commit 1e44578

Browse files
committed
Fixed basis -> quat casting
Noticed a lot of error spat out because of unnormalized basis. I simply followed the suggestion to use get_rotation_quat() instead of using constructor of Quat(x).
1 parent 9b2da1f commit 1e44578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3d/material_testers/tester.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func _unhandled_input(ev):
5151
func _process(delta):
5252
var xform = get_node("testers").get_child(tester_index).get_node("MeshInstance").global_transform
5353
var p = xform.origin
54-
var r = Quat(xform.basis)
54+
var r = xform.basis.get_rotation_quat()
5555
var from_xform = get_node("camera").transform
5656
var from_p = from_xform.origin
5757
var from_r = Quat(from_xform.basis)

0 commit comments

Comments
 (0)