You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add is_zero_approx methods to Vector2, 3, and 4
This commit is contained in:
@@ -681,7 +681,7 @@ void BoneMapper::auto_mapping_process(Ref<BoneMap> &p_bone_map) {
|
||||
}
|
||||
if (!found) {
|
||||
for (int i = 0; i < search_path.size(); i++) {
|
||||
if (Vector3(0, 0, 0).is_equal_approx(skeleton->get_bone_global_rest(search_path[i]).origin)) {
|
||||
if (skeleton->get_bone_global_rest(search_path[i]).origin.is_zero_approx()) {
|
||||
bone_idx = search_path[i]; // The bone existing at the origin is appropriate as a root.
|
||||
found = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user