Remember to call ui.register_rect
for better debug
#5130
Merged
ui.register_rect
for better debug
#5130