forked from StudioInfinity/dyna3
Flag regulator update logging as debug
This commit is contained in:
parent
5506ec1f43
commit
99a9c3ec55
1 changed files with 3 additions and 0 deletions
|
@ -391,9 +391,12 @@ impl Assembly {
|
||||||
// edited while acting as a constraint
|
// edited while acting as a constraint
|
||||||
let self_for_effect = self.clone();
|
let self_for_effect = self.clone();
|
||||||
create_effect(move || {
|
create_effect(move || {
|
||||||
|
/* DEBUG */
|
||||||
|
// log the regulator update
|
||||||
console::log_1(&JsValue::from(
|
console::log_1(&JsValue::from(
|
||||||
format!("Updated regulator with subjects {:?}", regulator_rc.subjects())
|
format!("Updated regulator with subjects {:?}", regulator_rc.subjects())
|
||||||
));
|
));
|
||||||
|
|
||||||
if regulator_rc.try_activate(&self_for_effect) {
|
if regulator_rc.try_activate(&self_for_effect) {
|
||||||
self_for_effect.realize();
|
self_for_effect.realize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue