summaryrefslogtreecommitdiff
path: root/scene/resources/surface_tool.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-12-16 17:28:05 -0300
committerGitHub <noreply@github.com>2020-12-16 17:28:05 -0300
commit9c39b51c5306333ba210c0a323f4198a258b51bd (patch)
tree0b4a378b86c7a3d6e20534e99460e05384ace298 /scene/resources/surface_tool.cpp
parentc514cc58224e5c973ac8be7bb6db7023d5c25906 (diff)
parentbf77016c8a3cc9a8ff4c57c0fc32a4255006391b (diff)
Merge pull request #44430 from reduz/reimplement-skeletons-blendshapes
Reimplement skeletons and blend shapes
Diffstat (limited to 'scene/resources/surface_tool.cpp')
-rw-r--r--scene/resources/surface_tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp
index 129f8a48ce..772b54bc53 100644
--- a/scene/resources/surface_tool.cpp
+++ b/scene/resources/surface_tool.cpp
@@ -541,7 +541,7 @@ Array SurfaceTool::commit_to_arrays() {
ERR_CONTINUE(v.bones.size() != count);
for (int j = 0; j < count; j++) {
- w[idx + j] = v.bones[j];
+ w[idx * count + j] = v.bones[j];
}
}
@@ -561,7 +561,7 @@ Array SurfaceTool::commit_to_arrays() {
ERR_CONTINUE(v.weights.size() != count);
for (int j = 0; j < count; j++) {
- w[idx + j] = v.weights[j];
+ w[idx * count + j] = v.weights[j];
}
}