Inochi2D / inochi2d

Inochi2D reference implementation aimed at rendering 2D puppets that can be animated in real-time (using eg. facial capture).
BSD 2-Clause "Simplified" License
1.25k stars 47 forks source link

Fix for some problems on reparent with null parent. #48

Closed seagetch closed 11 months ago

seagetch commented 11 months ago

Current implementation crashed when null parent is passed to Node.reparent method. This patch fixes to avoid crash on that case, and node is simply removed from the tree. Also getCombinedBoundsRect is enhanced in order to be able to specify the template parameter same as getCombinedBounds.