summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-26 21:04:48 +0100
committerGitHub <noreply@github.com>2017-11-26 21:04:48 +0100
commitce89b20b2055eadaf4dfc7dafd52928cccba342f (patch)
tree6010f8160aa18e36e84789228dc17d9472a5747f /servers
parentf041d2e8ecce7411929efc6baf1afca98edc6bf6 (diff)
parent2399d11e2744cc4c3a747271ff4c573ddef2188d (diff)
Merge pull request #13228 from rminderhoud/weights
Fix read bug in compressed bone weights
Diffstat (limited to 'servers')
-rw-r--r--servers/visual_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/visual_server.cpp b/servers/visual_server.cpp
index 19e2221e4b..41837934f4 100644
--- a/servers/visual_server.cpp
+++ b/servers/visual_server.cpp
@@ -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]];
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 {