Skip to content

Commit

Permalink
Nnnn feather fixes 2
Browse files Browse the repository at this point in the history
foreground drawables were not returning paths to paint from

Diffs=
b2886f2449 Nnnn feather fixes 2 (#9003)

Co-authored-by: hernan <[email protected]>
  • Loading branch information
bodymovin and bodymovin committed Feb 8, 2025
1 parent d6e9052 commit eb80612
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8f7120837bc9eb91c6cd23a8eb25d311e4057534
b2886f2449acf5a4680a929b55dc72632205aec9
3 changes: 3 additions & 0 deletions include/rive/foreground_layout_drawable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class ForegroundLayoutDrawable : public ForegroundLayoutDrawableBase,
}

Component* pathBuilder() override;
ShapePaintPath* worldPath() override;
ShapePaintPath* localPath() override;
ShapePaintPath* localClockwisePath() override;
};
} // namespace rive

Expand Down
17 changes: 16 additions & 1 deletion src/foreground_layout_drawable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,19 @@ Core* ForegroundLayoutDrawable::hitTest(HitInfo* hinfo, const Mat2D& xform)
return nullptr;
}

Component* ForegroundLayoutDrawable::pathBuilder() { return parent(); }
Component* ForegroundLayoutDrawable::pathBuilder() { return parent(); }

ShapePaintPath* ForegroundLayoutDrawable::worldPath()
{
return parent()->as<LayoutComponent>()->worldPath();
}

ShapePaintPath* ForegroundLayoutDrawable::localPath()
{
return parent()->as<LayoutComponent>()->localPath();
}

ShapePaintPath* ForegroundLayoutDrawable::localClockwisePath()
{
return parent()->as<LayoutComponent>()->localClockwisePath();
}

0 comments on commit eb80612

Please sign in to comment.