You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!checked && Object::cast_to<Control>(object) && property_path.begins_with("theme_override_")) {
1067
+
List<PropertyInfo> pinfo;
1068
+
object->get_property_list(&pinfo);
1069
+
for (const PropertyInfo &E : pinfo) {
1070
+
if (E.type == Variant::OBJECT && E.name == property_path) {
1071
+
EditorToaster::get_singleton()->popup_str(TTR("Toggling the checkbox is disabled for Resource properties. Modify the property using the resource picker instead."), EditorToaster::SEVERITY_WARNING);
1072
+
return; // Disallow clicking to toggle the checkbox of type Resource to checked.
if (!checked && Object::cast_to<Control>(object) && property_path.begins_with("theme_override_")) {
1095
+
List<PropertyInfo> pinfo;
1096
+
object->get_property_list(&pinfo);
1097
+
for (const PropertyInfo &E : pinfo) {
1098
+
if (E.type == Variant::OBJECT && E.name == property_path) {
1099
+
EditorToaster::get_singleton()->popup_str(TTR("Toggling the checkbox is disabled for Resource properties. Modify the property using the resource picker instead."), EditorToaster::SEVERITY_WARNING);
0 commit comments