Allow option to disable AA when creating preview

Change "people" to "authors" in plugin warning message
This commit is contained in:
JannisX11 2020-10-12 21:22:02 +02:00
parent 11be98c1e8
commit 3f54c3b934
2 changed files with 6 additions and 6 deletions

View File

@ -116,10 +116,10 @@ const DefaultCameraPresets = [
]
class Preview {
constructor(data) {
constructor(options = 0) {
var scope = this;
if (data && data.id) {
this.id = data.id
if (options && options.id) {
this.id = options.id
}
//Node
this.canvas = document.createElement('canvas')
@ -195,7 +195,7 @@ class Preview {
try {
this.renderer = new THREE.WebGLRenderer({
canvas: this.canvas,
antialias: Settings.get('antialiasing'),
antialias: typeof options.antialias == 'boolean' ? options.antialias : Settings.get('antialiasing'),
alpha: true,
preserveDrawingBuffer: true
});

View File

@ -197,8 +197,8 @@
"message.display_skin_model.slim": "Slim",
"message.invalid_plugin": "Invalid Plugin File, See Console",
"message.load_plugin_app": "Do you want to allow this plugin to make changes to your PC? Only load plugins from people you trust.",
"message.load_plugin_web": "Do you want to load this plugin? Only load plugins from people you trust.",
"message.load_plugin_app": "Do you want to allow this plugin to make changes to your PC? Only load plugins from authors you trust.",
"message.load_plugin_web": "Do you want to load this plugin? Only load plugins from authors you trust.",
"message.plugin_reload": "Reloaded %0 local plugins",
"message.install_plugin": "Installing the plugin %0",
"message.preset_no_info": "Preset does not contain information for this slot",