1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-20 14:45:44 +00:00

optional formal changes

This commit is contained in:
ehriche
2015-05-06 00:56:59 +02:00
parent fe13c728fd
commit 897a1aade5
15 changed files with 30 additions and 26 deletions

View File

@@ -1257,7 +1257,8 @@ void SkeletonSpatialGizmo::redraw() {
//find closest axis
int closest=-1;
float closest_d;
float closest_d = 0.0;
for(int j=0;j<3;j++) {
float dp = Math::abs(grests[parent].basis[j].normalized().dot(d));
if (j==0 || dp>closest_d)