Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/Model.cpp
/* Copyright (C) 2020 Wildfire Games. | /* Copyright (C) 2021 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 484 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; | |||||
if (source->m_Flags & MODELFLAG_CASTSHADOWS) | |||||
m_Flags |= MODELFLAG_CASTSHADOWS; | |||||
wraitii: As I wrote on the LOD diff, I can only imagine that this was a workaround 15 years ago that… | |||||
StanUnsubmitted Done Inline ActionsProbably has to do with the old actor format. Stan: Probably has to do with the old actor format. | |||||
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 163 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
As I wrote on the LOD diff, I can only imagine that this was a workaround 15 years ago that just ended up left in.