You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Merge pull request #13228 from rminderhoud/weights
Fix read bug in compressed bone weights
This commit is contained in:
@@ -1347,7 +1347,7 @@ Array VisualServer::_get_array_from_surface(uint32_t p_format, PoolVector<uint8_
|
|||||||
|
|
||||||
const uint16_t *v = (const uint16_t *)&r[j * total_elem_size + offsets[i]];
|
const uint16_t *v = (const uint16_t *)&r[j * total_elem_size + offsets[i]];
|
||||||
for (int k = 0; k < 4; k++) {
|
for (int k = 0; k < 4; k++) {
|
||||||
w[j * 4 + k] = float(v[k] / 65535.0) * 2.0 - 1.0;
|
w[j * 4 + k] = float(v[k] / 65535.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user