Sort box corners correctly
authorThomas--S <Thomas--S@users.noreply.github.com>
Thu, 13 Apr 2017 13:45:12 +0000 (15:45 +0200)
committerSmallJoker <mk939@ymail.com>
Fri, 4 Aug 2017 19:57:50 +0000 (21:57 +0200)
src/script/common/c_converter.cpp

index fc516d56a9acf5f03bbc99348d1939be0b818e0a..3426a9677689309f9f2485c54f58a7f6d9d49be5 100644 (file)
@@ -306,6 +306,7 @@ aabb3f read_aabb3f(lua_State *L, int index, f32 scale)
                box.MaxEdge.Z = lua_tonumber(L, -1) * scale;
                lua_pop(L, 1);
        }
+       box.repair();
        return box;
 }