Merge branch 'master' into FindInstancesProcessOptim
commit
dcee3295cc
|
@ -643,9 +643,9 @@ void ParseVectorDataArray(std::vector<aiVector3D>& out, const Element& el)
|
||||||
if (type == 'd') {
|
if (type == 'd') {
|
||||||
const double* d = reinterpret_cast<const double*>(&buff[0]);
|
const double* d = reinterpret_cast<const double*>(&buff[0]);
|
||||||
for (unsigned int i = 0; i < count3; ++i, d += 3) {
|
for (unsigned int i = 0; i < count3; ++i, d += 3) {
|
||||||
out.push_back(aiVector3D(static_cast<float>(d[0]),
|
out.push_back(aiVector3D(static_cast<ai_real>(d[0]),
|
||||||
static_cast<float>(d[1]),
|
static_cast<ai_real>(d[1]),
|
||||||
static_cast<float>(d[2])));
|
static_cast<ai_real>(d[2])));
|
||||||
}
|
}
|
||||||
// for debugging
|
// for debugging
|
||||||
/*for ( size_t i = 0; i < out.size(); i++ ) {
|
/*for ( size_t i = 0; i < out.size(); i++ ) {
|
||||||
|
|
|
@ -82,7 +82,8 @@ def call_init(obj, caller = None):
|
||||||
_init(obj,parent=caller)
|
_init(obj,parent=caller)
|
||||||
|
|
||||||
def _is_init_type(obj):
|
def _is_init_type(obj):
|
||||||
if helper.hasattr_silent(obj,'contents'): #pointer
|
|
||||||
|
if obj and helper.hasattr_silent(obj,'contents'): #pointer
|
||||||
return _is_init_type(obj[0])
|
return _is_init_type(obj[0])
|
||||||
# null-pointer case that arises when we reach a mesh attribute
|
# null-pointer case that arises when we reach a mesh attribute
|
||||||
# like mBitangents which use mNumVertices rather than mNumBitangents
|
# like mBitangents which use mNumVertices rather than mNumBitangents
|
||||||
|
|
Loading…
Reference in New Issue