| 466 | |
| 467 | |
| 468 | void TextureMatrix::setDynamicScaleVar(const std::string& var) { |
| 469 | if (!scaleVar.empty()) { |
| 470 | BZDB.removeCallback(scaleVar, staticScaleCallback, this); |
| 471 | } |
| 472 | scaleVar = var; |
| 473 | if (!scaleVar.empty()) { |
| 474 | BZDB.addCallback(scaleVar, staticScaleCallback, this); |
| 475 | scaleCallback(spinVar); |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | |
| 480 | void TextureMatrix::setDynamicShiftVar(const std::string& var) { |
no test coverage detected