Skip to content

Commit eab8fa5

Browse files
committed
extra-animations: Don't override get_bounding_box() in animations
This can lead to wrong assumptions made by other plugins.
1 parent e3950a5 commit eab8fa5

6 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/extra-animations/blinds.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ class blinds_transformer : public wf::scene::view_2d_transformer_t
261261
});
262262
}
263263

264-
wf::geometry_t get_bounding_box() override
265-
{
266-
return this->animation_geometry;
267-
}
268-
269264
wf::effect_hook_t pre_hook = [=] ()
270265
{
271266
output->render->damage(animation_geometry);

src/extra-animations/burn.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,11 +348,6 @@ class burn_transformer : public wf::scene::view_2d_transformer_t
348348
return box;
349349
}
350350

351-
wf::geometry_t get_bounding_box() override
352-
{
353-
return get_padded_bounding_box();
354-
}
355-
356351
wf::effect_hook_t pre_hook = [=] ()
357352
{
358353
output->render->damage(this->get_bounding_box());

src/extra-animations/carpet.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,6 @@ class carpet_transformer : public wf::scene::view_2d_transformer_t
481481
return box;
482482
}
483483

484-
wf::geometry_t get_bounding_box() override
485-
{
486-
return get_padded_bounding_box();
487-
}
488-
489484
wf::effect_hook_t pre_hook = [=] ()
490485
{
491486
output->render->damage(this->get_bounding_box());

src/extra-animations/helix.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,6 @@ class helix_transformer : public wf::scene::view_2d_transformer_t
261261
});
262262
}
263263

264-
wf::geometry_t get_bounding_box() override
265-
{
266-
return this->animation_geometry;
267-
}
268-
269264
wf::effect_hook_t pre_hook = [=] ()
270265
{
271266
output->render->damage(animation_geometry);

src/extra-animations/melt.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,6 @@ class melt_transformer : public wf::scene::view_2d_transformer_t
240240
return box;
241241
}
242242

243-
wf::geometry_t get_bounding_box() override
244-
{
245-
return get_padded_bounding_box();
246-
}
247-
248243
wf::effect_hook_t pre_hook = [=] ()
249244
{
250245
output->render->damage(this->get_padded_bounding_box());

src/extra-animations/shatter.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,6 @@ class shatter_transformer : public wf::scene::view_2d_transformer_t
320320
construct_voronoi(points.begin(), points.end(), &vd);
321321
}
322322

323-
wf::geometry_t get_bounding_box() override
324-
{
325-
return this->animation_geometry;
326-
}
327-
328323
wf::effect_hook_t pre_hook = [=] ()
329324
{
330325
output->render->damage(animation_geometry);

0 commit comments

Comments
 (0)