Use switch consistently in _notification (scene folder)
This commit is contained in:
@ -40,8 +40,10 @@ Color ColorRect::get_color() const {
|
||||
}
|
||||
|
||||
void ColorRect::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
draw_rect(Rect2(Point2(), get_size()), color);
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_DRAW: {
|
||||
draw_rect(Rect2(Point2(), get_size()), color);
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user