Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/collada/GeometryExporter.cpp
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | void GeometryExporter::operator()(Object *ob) | ||||
| if (this->export_settings.get_include_shapekeys()) { | if (this->export_settings.get_include_shapekeys()) { | ||||
| Key *key = BKE_key_from_object(ob); | Key *key = BKE_key_from_object(ob); | ||||
| if (key) { | if (key) { | ||||
| KeyBlock *kb = (KeyBlock *)key->block.first; | KeyBlock *kb = (KeyBlock *)key->block.first; | ||||
| /* skip the basis */ | /* skip the basis */ | ||||
| kb = kb->next; | kb = kb->next; | ||||
| for (; kb; kb = kb->next) { | for (; kb; kb = kb->next) { | ||||
| BKE_keyblock_convert_to_mesh(kb, me); | BKE_keyblock_convert_to_mesh(kb, me->mvert, me->totvert); | ||||
| export_key_mesh(ob, me, kb); | export_key_mesh(ob, me, kb); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| BKE_id_free(nullptr, me); | BKE_id_free(nullptr, me); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 568 Lines • Show Last 20 Lines | |||||