Skip to content

Commit

Permalink
Update scene/3d/look_at_modifier_3d.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
  • Loading branch information
TokageItLab and AThousandShips authored Nov 11, 2024
1 parent 501cbbd commit e3f8338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/3d/look_at_modifier_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ void LookAtModifier3D::_process_modification() {
is_within_limitations = true;
Vector3 prev_forward_vector = forward_vector;
Quaternion destination;
Node3D *target = cast_to<Node3D>(get_node_or_null(target_node));
Node3D *target = Object::cast_to<Node3D>(get_node_or_null(target_node));
if (!target) {
destination = skeleton->get_bone_pose_rotation(bone);
} else {
Expand Down

0 comments on commit e3f8338

Please sign in to comment.