# Animate props.

tex: Reverted recent WARN_RETURN(ERR_TEX_CODEC_CANNOT_HANDLE) changes,
since (I think) it shouldn't warn about that being returned (because it
intentionally happens frequently).
XMLWriter: Trivial inconsequential optimisations (avoiding temporary
strings).

This was SVN commit r3801.
This commit is contained in:
Ykkrosh
2006-04-23 22:22:18 +00:00
parent 15e8d9a0b3
commit 2fbb899bb5
14 changed files with 370 additions and 331 deletions
+2 -1
View File
@@ -8,6 +8,7 @@
#include "CLogger.h"
#include "MaterialManager.h"
#include "MeshManager.h"
#include "SkeletonAnim.h"
#include "UnitManager.h"
#include "Unit.h"
@@ -164,7 +165,7 @@ bool CObjectEntry::BuildVariation(const std::vector<std::set<CStrW> >& selection
if (proppoint)
{
CModel* propmodel = oe->m_Model->Clone();
m_Model->AddProp(proppoint, propmodel);
m_Model->AddProp(proppoint, propmodel, oe);
propmodel->SetAnimation(oe->GetRandomAnimation("idle"));
}
else