You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Core] Add scalar versions of Vector* min/max/clamp/snap(ped)
Convenience for a number of cases operating on single values
This commit is contained in:
@@ -133,7 +133,7 @@ void TriangleMesh::create(const Vector<Vector3> &p_faces, const Vector<int32_t>
|
||||
|
||||
for (int j = 0; j < 3; j++) {
|
||||
int vidx = -1;
|
||||
Vector3 vs = v[j].snapped(Vector3(0.0001, 0.0001, 0.0001));
|
||||
Vector3 vs = v[j].snappedf(0.0001);
|
||||
HashMap<Vector3, int>::Iterator E = db.find(vs);
|
||||
if (E) {
|
||||
vidx = E->value;
|
||||
|
||||
Reference in New Issue
Block a user