some work on fcollada import
This commit is contained in:
@@ -167,15 +167,18 @@ FUStatus FCDPhysicsShape::LoadFromXML(xmlNode* physicsShapeNode)
|
||||
else
|
||||
{
|
||||
FCDTransform* transform = FCDTFactory::CreateTransform(GetDocument(), NULL, child);
|
||||
if (transform != NULL && (transform->GetType() != FCDTransform::TRANSLATION
|
||||
|| transform->GetType() != FCDTransform::ROTATION || transform->GetType() != FCDTransform::SCALE))
|
||||
if (transform)
|
||||
{
|
||||
SAFE_DELETE(transform);
|
||||
}
|
||||
else
|
||||
{
|
||||
transforms.push_back(transform);
|
||||
status.AppendStatus(transform->LoadFromXML(child));
|
||||
if (transform != NULL && (transform->GetType() != FCDTransform::TRANSLATION
|
||||
|| transform->GetType() != FCDTransform::ROTATION || transform->GetType() != FCDTransform::SCALE))
|
||||
{
|
||||
SAFE_DELETE(transform);
|
||||
}
|
||||
else
|
||||
{
|
||||
transforms.push_back(transform);
|
||||
status.AppendStatus(transform->LoadFromXML(child));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
/** Copy constructor.
|
||||
@param copy The dynamically-sized array to copy the values from. */
|
||||
vector(const std::vector& copy) : std::vector<T>(copy) {}
|
||||
vector(const std::vector<T>& copy) : std::vector<T>(copy) {}
|
||||
|
||||
/** Constructor: Builds a dynamically-sized array from a constant-sized array.
|
||||
@param values A constant-sized array of floating-point values.
|
||||
|
||||
@@ -237,7 +237,7 @@ fstring FUFileManager::MakeFilePathAbsolute(const fstring& _filePath)
|
||||
|
||||
if (filePath.size() < 2 || (filePath[1] != ':' && filePath[1] != '|'))
|
||||
{
|
||||
filePath.insert(0, '/');
|
||||
filePath.insert(0, "/");//'/');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ void FUUniqueStringMapT<Builder>::AddUniqueString(typename Builder::String& want
|
||||
{
|
||||
// Attempt to generate a new string by appending an increasing counter.
|
||||
uint32 counter = 2;
|
||||
static const maxCounter = 256;
|
||||
static const int maxCounter = 256;
|
||||
Builder buffer;
|
||||
buffer.reserve(wantedStr.length() + 5);
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user