Skip to content

Commit

Permalink
Invalidate transform after being added to view
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-weili committed Jan 23, 2019
1 parent 8ee15ea commit 65ca583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bluecadet/views/BaseView.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class BaseView : public std::enable_shared_from_this<BaseView> {
inline virtual void drawChildren(const ci::ColorA & parentDrawColor); //! Called by drawScene() after draw() and before didDraw(). Implemented at bottom of class.
inline virtual void didDraw() {} //! Called by drawScene after draw()

inline virtual void didMoveToView(BaseView * parent) {} //! Called when moved to a parent
inline virtual void didMoveToView(BaseView * parent) { invalidate(true, false); } //! Called when moved to a parent
inline virtual void willMoveFromView(BaseView * parent) {} //! Called when removed from a parent

const ci::ColorA & getDrawColor() const { return mDrawColor; } //! The color used for drawing, which is a composite of the alpha and tint colors.
Expand Down

0 comments on commit 65ca583

Please sign in to comment.