Light3D show scaling warning immediately

(cherry picked from commit 818d57b5b4)
This commit is contained in:
VolTer 2022-10-29 22:15:27 +02:00 committed by Rémi Verschelde
parent b532dd7626
commit 70f7fcd208
No known key found for this signature in database
GPG Key ID: C3336907360768E1
6 changed files with 8 additions and 21 deletions

View File

@ -907,9 +907,7 @@ void RigidBody2D::_notification(int p_what) {
} break; } break;
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: { case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: {
if (Engine::get_singleton()->is_editor_hint()) { update_configuration_warnings();
update_configuration_warnings();
}
} break; } break;
} }
#endif #endif

View File

@ -83,13 +83,9 @@ void CollisionObject3D::_notification(int p_what) {
_update_pickable(); _update_pickable();
} break; } break;
#ifdef TOOLS_ENABLED
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: { case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: {
if (Engine::get_singleton()->is_editor_hint()) { update_configuration_warnings();
update_configuration_warnings();
}
} break; } break;
#endif
case NOTIFICATION_TRANSFORM_CHANGED: { case NOTIFICATION_TRANSFORM_CHANGED: {
if (only_update_transform_changes) { if (only_update_transform_changes) {

View File

@ -104,11 +104,7 @@ void CollisionPolygon3D::_notification(int p_what) {
if (parent) { if (parent) {
_update_in_shape_owner(true); _update_in_shape_owner(true);
} }
#ifdef TOOLS_ENABLED update_configuration_warnings();
if (Engine::get_singleton()->is_editor_hint()) {
update_configuration_warnings();
}
#endif
} break; } break;
case NOTIFICATION_UNPARENTED: { case NOTIFICATION_UNPARENTED: {

View File

@ -99,11 +99,7 @@ void CollisionShape3D::_notification(int p_what) {
if (parent) { if (parent) {
_update_in_shape_owner(true); _update_in_shape_owner(true);
} }
#ifdef TOOLS_ENABLED update_configuration_warnings();
if (Engine::get_singleton()->is_editor_hint()) {
update_configuration_warnings();
}
#endif
} break; } break;
case NOTIFICATION_UNPARENTED: { case NOTIFICATION_UNPARENTED: {

View File

@ -284,6 +284,9 @@ void Light3D::_update_visibility() {
void Light3D::_notification(int p_what) { void Light3D::_notification(int p_what) {
switch (p_what) { switch (p_what) {
case NOTIFICATION_TRANSFORM_CHANGED: {
update_configuration_warnings();
} break;
case NOTIFICATION_VISIBILITY_CHANGED: case NOTIFICATION_VISIBILITY_CHANGED:
case NOTIFICATION_ENTER_TREE: { case NOTIFICATION_ENTER_TREE: {
_update_visibility(); _update_visibility();

View File

@ -599,9 +599,7 @@ void RigidBody3D::_notification(int p_what) {
} break; } break;
case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: { case NOTIFICATION_LOCAL_TRANSFORM_CHANGED: {
if (Engine::get_singleton()->is_editor_hint()) { update_configuration_warnings();
update_configuration_warnings();
}
} break; } break;
} }
#endif #endif