Skip to content

Commit

Permalink
Fix slice feedback when cel origin < (0,0)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Apr 14, 2017
1 parent 0c5bccf commit d4de15b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/tools/inks.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ class SliceInk : public Ink {
Ink* clone() override { return new SliceInk(*this); }

bool isSlice() const override { return true; }
bool needsCelCoordinates() const override { return false; }
bool needsCelCoordinates() const override {
return (m_createSlice ? false: true);
}

void prepareInk(ToolLoop* loop) override {
m_proc = get_ink_proc<XorInkProcessing>(loop->sprite()->pixelFormat());
Expand Down

0 comments on commit d4de15b

Please sign in to comment.