Merge pull request #2134 from LoicFr/master
FBX import: fix import of direct data by vertices + unify node renamingpull/2141/head^2
commit
6329bf66bb
|
@ -185,12 +185,8 @@ void FBXConverter::ConvertNodes( uint64_t id, aiNode& parent, const aiMatrix4x4&
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !name_carrier ) {
|
if ( !name_carrier ) {
|
||||||
NodeNameCache::const_iterator it = mNodeNames.find(original_name);
|
std::string old_original_name = original_name;
|
||||||
if ( it != mNodeNames.end() ) {
|
GetUniqueName(old_original_name, original_name);
|
||||||
original_name = original_name + std::string( "001" );
|
|
||||||
}
|
|
||||||
|
|
||||||
mNodeNames.insert( original_name );
|
|
||||||
nodes_chain.push_back( new aiNode( original_name ) );
|
nodes_chain.push_back( new aiNode( original_name ) );
|
||||||
} else {
|
} else {
|
||||||
original_name = nodes_chain.back()->mName.C_Str();
|
original_name = nodes_chain.back()->mName.C_Str();
|
||||||
|
|
|
@ -437,7 +437,7 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
||||||
// deal with this more elegantly and with less redundancy, but right
|
// deal with this more elegantly and with less redundancy, but right
|
||||||
// now it seems unavoidable.
|
// now it seems unavoidable.
|
||||||
if (MappingInformationType == "ByVertice" && isDirect) {
|
if (MappingInformationType == "ByVertice" && isDirect) {
|
||||||
if (!HasElement(source, indexDataElementName)) {
|
if (!HasElement(source, dataElementName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
std::vector<T> tempData;
|
std::vector<T> tempData;
|
||||||
|
|
Loading…
Reference in New Issue