There was an error while loading. Please reload this page.
1 parent b217f0f commit 04e4f51Copy full SHA for 04e4f51
1 file changed
src/material.cc
@@ -109,8 +109,12 @@ void Material::Absorb(Material::Ptr mat) {
109
if (ctx_ != NULL && ctx_->sim_info().decay != "never") {
110
common_decay_time = ctx_->time();
111
}
112
- this->Decay(common_decay_time);
113
mat->Decay(common_decay_time);
+ this->Decay(common_decay_time);
114
+
115
+ // manually update decay time in case the change was so small
116
+ // that no decay was invoked
117
+ this->prev_decay_time_ = common_decay_time;
118
119
// these calls force lazy evaluation if in lazy decay mode
120
Composition::Ptr c0 = comp();
0 commit comments