summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2019-03-01 16:01:21 -0300
committerJuan Linietsky <juan@godotengine.org>2019-03-01 16:01:44 -0300
commit3f681b06812b8070a8ad790af79221ddf5c8c1e3 (patch)
tree9b91984d102a6e128c2231f1d418e6a66c69597c /servers
parente47915f7cd9336a37d08891a046a4bd778572a73 (diff)
Clean up blend shape support in GLES2 and GLES3.
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/visual_server_scene.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp
index 42be56cfdd..2590e29aef 100644
--- a/servers/visual/visual_server_scene.cpp
+++ b/servers/visual/visual_server_scene.cpp
@@ -445,6 +445,9 @@ void VisualServerScene::instance_set_base(RID p_instance, RID p_base) {
InstanceGeometryData *geom = memnew(InstanceGeometryData);
instance->base_data = geom;
+ if (instance->base_type == VS::INSTANCE_MESH) {
+ instance->blend_values.resize(VSG::storage->mesh_get_blend_shape_count(p_base));
+ }
} break;
case VS::INSTANCE_REFLECTION_PROBE: {