Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/Model.cpp
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | |||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
// CopyAnimation | // CopyAnimation | ||||
void CModel::CopyAnimationFrom(CModel* source) | void CModel::CopyAnimationFrom(CModel* source) | ||||
{ | { | ||||
m_Anim = source->m_Anim; | m_Anim = source->m_Anim; | ||||
m_AnimTime = source->m_AnimTime; | m_AnimTime = source->m_AnimTime; | ||||
m_Flags &= ~MODELFLAG_CASTSHADOWS; | /*m_Flags &= ~MODELFLAG_CASTSHADOWS; | ||||
if (source->m_Flags & MODELFLAG_CASTSHADOWS) | if (source->m_Flags & MODELFLAG_CASTSHADOWS) | ||||
m_Flags |= MODELFLAG_CASTSHADOWS; | m_Flags |= MODELFLAG_CASTSHADOWS;*/ | ||||
wraitii: As far as I can tell this is a 15 year old bug. Need to actually dig into this. | |||||
m_ObjectBounds.SetEmpty(); | m_ObjectBounds.SetEmpty(); | ||||
InvalidateBounds(); | InvalidateBounds(); | ||||
} | } | ||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
// AddProp: add a prop to the model on the given point | // AddProp: add a prop to the model on the given point | ||||
void CModel::AddProp(const SPropPoint* point, CModelAbstract* model, CObjectEntry* objectentry, float minHeight, float maxHeight, bool selectable) | void CModel::AddProp(const SPropPoint* point, CModelAbstract* model, CObjectEntry* objectentry, float minHeight, float maxHeight, bool selectable) | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
As far as I can tell this is a 15 year old bug. Need to actually dig into this.