Commit ce09d818f2895cca08f1a7715b991204bbf4184a
1 parent
1abcfbdc
TimeVaryingTransforms need to call TimeVaryingTransform::init
Showing
3 changed files
with
10 additions
and
1 deletions
openbr/plugins/frames.cpp
openbr/plugins/gui.cpp
| @@ -350,6 +350,8 @@ public: | @@ -350,6 +350,8 @@ public: | ||
| 350 | if (!Globals->useGui) | 350 | if (!Globals->useGui) |
| 351 | return; | 351 | return; |
| 352 | 352 | ||
| 353 | + TimeVaryingTransform::init(); | ||
| 354 | + | ||
| 353 | if (displayBuffer) | 355 | if (displayBuffer) |
| 354 | delete displayBuffer; | 356 | delete displayBuffer; |
| 355 | displayBuffer = new QPixmap(); | 357 | displayBuffer = new QPixmap(); |
| @@ -530,6 +532,7 @@ public: | @@ -530,6 +532,7 @@ public: | ||
| 530 | target_wait = 1000.0 / targetFPS; | 532 | target_wait = 1000.0 / targetFPS; |
| 531 | timer.start(); | 533 | timer.start(); |
| 532 | last_time = timer.elapsed(); | 534 | last_time = timer.elapsed(); |
| 535 | + TimeVaryingTransform::init(); | ||
| 533 | } | 536 | } |
| 534 | 537 | ||
| 535 | protected: | 538 | protected: |
| @@ -583,6 +586,7 @@ public: | @@ -583,6 +586,7 @@ public: | ||
| 583 | { | 586 | { |
| 584 | initialized = false; | 587 | initialized = false; |
| 585 | framesSeen = 0; | 588 | framesSeen = 0; |
| 589 | + TimeVaryingTransform::init(); | ||
| 586 | } | 590 | } |
| 587 | 591 | ||
| 588 | protected: | 592 | protected: |