Skip to content

Commit 288a99b

Browse files
committed
fix .mtl file issue
1 parent a872415 commit 288a99b

File tree

8 files changed

+14205
-9489
lines changed

8 files changed

+14205
-9489
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ class Editor extends React.Component {
340340
mode = 'x-shader/x-fragment';
341341
} else if (fileName.match(/.+\.(vert|stl)$/i)) {
342342
mode = 'x-shader/x-vertex';
343+
} else if (fileName.match(/.+\.mtl$/i)) {
344+
mode = 'x-shader/x-vertex'; // or any other mode that you want to use for .mtl files
343345
} else {
344346
mode = 'text/plain';
345347
}

package-lock.json

Lines changed: 14197 additions & 9483 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"babel-plugin-transform-react-remove-prop-types": "^0.2.12",
115115
"css-loader": "^5.2.7",
116116
"css-minimizer-webpack-plugin": "^3.4.1",
117-
"eslint": "^7.31.0",
117+
"eslint": "^7.32.0",
118118
"eslint-config-airbnb": "^16.1.0",
119119
"eslint-config-prettier": "^7.2.0",
120120
"eslint-plugin-import": "^2.23.4",

translations/locales/be/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"Title": "ফাইল তৈরি করুন",
245245
"CloseButtonARIA": "নতুন ফাইল মোডাল বন্ধ করুন",
246246
"EnterName": "নাম লিখুন",
247-
"InvalidType": "অবৈধ ফাইল ধরন। বৈধ এক্সটেনশনগুলি হলো .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .frag এবং .vert."
247+
"InvalidType": "অবৈধ ফাইল ধরন। বৈধ এক্সটেনশনগুলি হলো .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .mtl, .frag এবং .vert."
248248
},
249249
"NewFileForm": {
250250
"AddFileSubmit": "ফাইল যোগ করুন",

translations/locales/en-US/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
"Title": "Create File",
250250
"CloseButtonARIA": "Close New File Modal",
251251
"EnterName": "Please enter a name",
252-
"InvalidType": "Invalid file type. Valid extensions are .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .frag, and .vert."
252+
"InvalidType": "Invalid file type. Valid extensions are .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .mtl, .frag, and .vert."
253253
},
254254
"NewFileForm": {
255255
"AddFileSubmit": "Add File",

translations/locales/es-419/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"Title": "Crear Archivo",
236236
"CloseButtonARIA": "Cerrar diálogo de crear archivo",
237237
"EnterName": "Por favor introduce un nombre",
238-
"InvalidType": "Tipo de archivo inválido. Las extensiones válidas son .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .frag y .vert."
238+
"InvalidType": "Tipo de archivo inválido. Las extensiones válidas son .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .mtl, .frag y .vert."
239239
},
240240
"NewFileForm": {
241241
"AddFileSubmit": "Agregar Archivo",

translations/locales/hi/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"Title": "फ़ाइल बनाएँ",
251251
"CloseButtonARIA": "नई फ़ाइल मोडल बंद करें",
252252
"EnterName": "कृपया एक नाम दर्ज करें",
253-
"InvalidType": "अमान्य फ़ाइल प्रकार। मान्य एक्सटेंशन हैं .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .frag, और .vert."
253+
"InvalidType": "अमान्य फ़ाइल प्रकार। मान्य एक्सटेंशन हैं .js, .css, .json, .xml, .stl, .txt, .csv, .tsv, .mtl, .frag, और .vert."
254254
},
255255
"NewFileForm": {
256256
"AddFileSubmit": "फाइल जोडें",

translations/locales/ja/translations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
"Title": "ファイル作成",
236236
"CloseButtonARIA": "新規ファイルモーダルを閉じる",
237237
"EnterName": "ファイル名を入力してください",
238-
"InvalidType": "ファイルタイプが無効です。有効な拡張子は、.js、.css、.json、.xml、.stl、.txt、.csv、.tsv、.frag、.vertです。"
238+
"InvalidType": "ファイルタイプが無効です。有効な拡張子は、.js、.css、.json、.xml、.stl、.txt、.csv、.tsv、.mtl、.frag、.vertです。"
239239
},
240240
"NewFileForm": {
241241
"AddFileSubmit": "ファイルを追加",

0 commit comments

Comments
 (0)