Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KX_MaterialIpoController.cpp
| Show All 26 Lines | |||||
| #include "KX_GameObject.h" | #include "KX_GameObject.h" | ||||
| #include "BLI_sys_types.h" // for intptr_t support | #include "BLI_sys_types.h" // for intptr_t support | ||||
| bool KX_MaterialIpoController::Update(double currentTime) | bool KX_MaterialIpoController::Update(double currentTime) | ||||
| { | { | ||||
| if (m_modified) | if (m_modified) | ||||
| { | { | ||||
| m_rgba[0]=0; | |||||
| m_rgba[1]=0; | |||||
| m_rgba[2]=0; | |||||
| m_rgba[3]=0; | |||||
| m_specrgb[0] =0; | |||||
| m_specrgb[1] =0; | |||||
| m_specrgb[2] =0; | |||||
| m_hard =0; | |||||
| m_spec=0; | |||||
| m_ref=0; | |||||
| m_emit=0; | |||||
| m_alpha = 0; | |||||
| T_InterpolatorList::iterator i; | T_InterpolatorList::iterator i; | ||||
| for (i = m_interpolators.begin(); !(i == m_interpolators.end()); ++i) { | for (i = m_interpolators.begin(); !(i == m_interpolators.end()); ++i) { | ||||
| (*i)->Execute(m_ipotime); | (*i)->Execute(m_ipotime); | ||||
| } | } | ||||
| SG_Spatial* ob = (SG_Spatial*)m_pObject; | SG_Spatial* ob = (SG_Spatial*)m_pObject; | ||||
| KX_GameObject* kxgameobj= (KX_GameObject*) ob->GetSGClientObject(); | KX_GameObject* kxgameobj= (KX_GameObject*) ob->GetSGClientObject(); | ||||
| ▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines | |||||