mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-05 09:33:47 -04:00
Some particle work and cleanup
This commit is contained in:
@@ -970,7 +970,7 @@ void dAttDraw_c::draw(cXyz &pos, Mtx mtx) {
|
||||
J3DModelData *modeldata = model->getModelData();
|
||||
if (mpAnmClr == NULL) {
|
||||
J3DAnmColor *color = (J3DAnmColor*)dComIfG_getObjectRes("Always", ALWAYS_BPK_YJ_IN);
|
||||
modeldata->getMaterialTable().removeMatColorAnimator(color);
|
||||
modeldata->removeMatColorAnimator(color);
|
||||
} else {
|
||||
mpAnmClr->setFrame(anm->mFrameCtrl.getFrame());
|
||||
J3DMatColorAnm *p = mpAnmMatClr;
|
||||
@@ -979,7 +979,7 @@ void dAttDraw_c::draw(cXyz &pos, Mtx mtx) {
|
||||
p->setAnmIndex(i);
|
||||
p++;
|
||||
}
|
||||
modeldata->getMaterialTable().setMatColorAnimator(mpAnmClr, mpAnmMatClr);
|
||||
modeldata->setMatColorAnimator(mpAnmClr, mpAnmMatClr);
|
||||
}
|
||||
|
||||
if (mDoGph_gInf_c::isMonotone()) {
|
||||
|
||||
Reference in New Issue
Block a user