We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d2e8e4 + b250660 commit e68f03aCopy full SHA for e68f03a
scene/2d/light_2d.cpp
@@ -203,7 +203,7 @@ void Light2D::_physics_interpolated_changed() {
203
204
void Light2D::_notification(int p_what) {
205
switch (p_what) {
206
- case NOTIFICATION_ENTER_TREE: {
+ case NOTIFICATION_ENTER_CANVAS: {
207
RS::get_singleton()->canvas_light_attach_to_canvas(canvas_light, get_canvas());
208
_update_light_visibility();
209
} break;
@@ -227,7 +227,7 @@ void Light2D::_notification(int p_what) {
227
}
228
229
230
- case NOTIFICATION_EXIT_TREE: {
+ case NOTIFICATION_EXIT_CANVAS: {
231
RS::get_singleton()->canvas_light_attach_to_canvas(canvas_light, RID());
232
233
0 commit comments