mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 23:51:58 +00:00
# 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user