OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
attachbinder.cpp
Go to the documentation of this file.
1#include "attachbinder.h"
2
3#include "protomesh.h"
4#include "skeleton.h"
5
7 bind.resize(m.submeshId.size());
8
9 for(size_t i=0;i<m.submeshId.size();++i){
10 auto& att = m.attach[m.submeshId[i].id];
11 bind[i] = s.findNode(att.name);
12 }
13 }
AttachBinder()=default
std::vector< size_t > bind
std::vector< Attach > attach
Definition protomesh.h:82
std::vector< SubMeshId > submeshId
Definition protomesh.h:84
size_t findNode(std::string_view name, size_t def=size_t(-1)) const
Definition skeleton.cpp:52