Merge branch 'master' into starlight

master
Nicky 2022-06-30 14:37:11 +02:00
commit cc9abdb8e1
7 changed files with 99 additions and 1 deletions

View File

@ -1540,6 +1540,22 @@ void FSLSLPreprocessor::start_process()
}
}
}
else
{
// FIRE-31718: Preprocessor crashes viewer on recursive #include
// Truncate the resulting preprocessed script to something the text field can handle without
// freezing for so long the viewer disconnects. The usual script source code limit is 64kB so
// let's play it safe and allow twice as much here. The script is most likely already unusable
// at this point due to the preprocessor bailing out with an error earlier, so a truncated
// version doesn't hurt more than it already did.
if (output.size() > 128 * 1024)
{
output.resize(128 * 1024);
display_error(LLTrans::getString("fs_preprocessor_truncated"));
}
}
if (!errored)
{
if (preprocessor_enabled && use_compression)

View File

@ -11981,7 +11981,7 @@ void LLVOAvatar::calculateUpdateRenderComplexity()
// place in the code. For now, this is a good spot as the complexity calculation
// gets updated when rigging data arrives, so we can reliably identify rigged
// attachments where the skinning information took a while to load.
if (attached_object->isHUDAttachment() && attached_object->mCheckRigOnHUD)
if (attached_object->isHUDAttachment() && attached_object->mCheckRigOnHUD && !attached_object->isTempAttachment())
{
// check if the root object is rigged
bool is_rigged = attached_object->isRiggedMesh();

View File

@ -7038,6 +7038,9 @@ Ihre aktuelle Position: [AVATAR_POS]
<string name="fs_preprocessor_caching_err">
Fehler beim Cachen der eingebundenen Datei „[FILENAME]“.
</string>
<string name="fs_preprocessor_truncated">
Achtung: Präprozessor-Ausgabe wurde aufgrund exzessiver Textlänge gekürzt. Das Skript wird wahrscheinlich nicht funktionieren.
</string>
<string name="skin_defaults_starlight_location">
Die Anzeige der aktuellen Position in der Menüleiste wurde als Standard für Starlight-Oberflächendesigns deaktiviert.

View File

@ -3153,6 +3153,7 @@ Your current position: [AVATAR_POS]
<string name="fs_preprocessor_cache_completed">Caching completed for '[FILENAME]'</string>
<string name="fs_preprocessor_cache_unsafe">Error: script named '[FILENAME]' isn't safe to copy to the filesystem. This include will fail.</string>
<string name="fs_preprocessor_caching_err">Error caching included file '[FILENAME]'</string>
<string name="fs_preprocessor_truncated">Warning: Preprocessor output truncated due to excessive script text size. This script will most likely not work.</string>
<!-- </FS:Cron> -->
<!-- <FS:Zi> Notify user about preferences settings changes to skin defaults -->

View File

@ -6824,6 +6824,78 @@ Votre position actuelle : [AVATAR_POS]
<string name="fs_preprocessor_mono_directive_override">
Détection de la directive compile-as-Mono outrepassant les préférences.
</string>
<!-- LSL Optimizer -->
<string name="fs_preprocessor_optimizer_start">
Optimisation des fonctions définies par l'utilisateur et des variables globales non référencées.
</string>
<string name="fs_preprocessor_optimizer_regex_err">
Expression régulière non valide : '[WHAT]' ; optimisation LSL ignorée.
</string>
<string name="fs_preprocessor_optimizer_exception">
Exception détectée : '[WHAT]' ; optimisation LSL sautée.
</string>
<string name="fs_preprocessor_optimizer_unexpected_exception">
Exception inattendue dans l'optimiseur LSL ; non appliquée.
</string>
<!-- LSL Compressor -->
<string name="fs_preprocessor_compress_start">
Compression du texte du script en supprimant les espaces inutiles.
</string>
<string name="fs_preprocessor_compress_regex_err">
Expression régulière non valide : '[WHAT]' ; la compression LSL est ignorée.
</string>
<string name="fs_preprocessor_compress_exception">
Exception interceptée : '[WHAT]' ; la compression LSL est ignorée.
</string>
<string name="fs_preprocessor_compress_unexpected_exception">
Exception inattendue dans le compresseur LSL ; non appliquée.
</string>
<!-- LSL Lazy lists -->
<string name="fs_preprocessor_lazylist_start">
Appliquer la conversion de liste paresseuse.
</string>
<string name="fs_preprocessor_lazylist_regex_err">
Pas une expression régulière valide : '[WHAT]' ; Le convertisseur de liste paresseux a été ignoré.
</string>
<string name="fs_preprocessor_lazylist_exception">
Exception interceptée : '[WHAT]' ; le convertisseur de liste paresseux a été ignoré.
</string>
<string name="fs_preprocessor_lazylist_unexpected_exception">
Exception inattendue dans le convertisseur de liste paresseux ; non appliquée.
</string>
<!-- LSL switch statement -->
<string name="fs_preprocessor_switchstatement_start">
Application de la conversion des instructions de commutation.
</string>
<string name="fs_preprocessor_switchstatement_regex_err">
Expression régulière non valide : '[WHAT]' ; Le convertisseur d'instruction de commutation a été ignoré.
</string>
<string name="fs_preprocessor_switchstatement_exception">
Exception interceptée : '[WHAT]' ; Le convertisseur d'instruction de commutation a été ignoré.
</string>
<string name="fs_preprocessor_switchstatement_unexpected_exception">
Exception inattendue dans le convertisseur d'instruction de commutation ; non appliquée.
</string>
<!-- LSL Cache -->
<string name="fs_preprocessor_cache_miss">
Mise en cache du fichier inclus : '[FILENAME]'.
</string>
<string name="fs_preprocessor_cache_invalidated">
Le fichier inclus '[FILENAME]' a changé, remise en cache.
</string>
<string name="fs_preprocessor_cache_completed">
La mise en cache est terminée pour '[FILENAME]'.
</string>
<string name="fs_preprocessor_cache_unsafe">
Erreur : le script nommé '[FILENAME]' n'est pas fiable pour être copié dans le système de fichiers. Cet include échouera.
</string>
<string name="fs_preprocessor_caching_err">
Erreur de mise en cache du fichier inclus '[FILENAME]'.
</string>
<string name="fs_preprocessor_truncated">
Avertissement : La sortie du préprocesseur a été tronquée en raison de la taille excessive du texte du script. Ce script ne fonctionnera probablement pas.
</string>
<!-- </FS:Cron> -->
<!-- <FS:Zi> Notify user about preferences settings changes to skin defaults -->
<string name="skin_defaults_starlight_location">

View File

@ -6335,6 +6335,9 @@ Twoja aktualna pozycja: [AVATAR_POS]
<string name="skin_defaults_starlight_navbar">
Pokazywanie paska nawigacyjnego zostało włączone, to domyślne zachowanie dla skórek linii StarLight.
</string>
<string name="fs_preprocessor_truncated">
Uwaga: Dane wyjściowe preprocesora zostały skrócone z powodu zbyt dużego rozmiaru tekstu skryptu - prawdopodobnie nie zadziała.
</string>
<string name="animation_explorer_seconds_ago">
[SECONDS] sekund temu
</string>

View File

@ -6632,6 +6632,9 @@ ID объекта: [INSPECTING_KEY]
<string name="skin_defaults_starlight_navbar">
Отображение панели навигации было включено по умолчанию для серии тем Starlight.
</string>
<string name="fs_preprocessor_truncated">
Предупреждение: Выходные данные препроцессора усечены из-за чрезмерного размера текста скрипта. Этот скрипт, скорее всего, не будет работать.
</string>
<string name="animation_explorer_seconds_ago">
[SECONDS] секунд назад
</string>