diff --git a/engine/src/ToolSettings.js b/engine/src/ToolSettings.js index 597344ca0..4b6c5d73e 100644 --- a/engine/src/ToolSettings.js +++ b/engine/src/ToolSettings.js @@ -103,7 +103,11 @@ Wick.ToolSettings = class { type: 'color', name: 'forwardOnionSkinTint', default: new Wick.Color('rgba(0, 0, 255, .5)'), - },{ + }, { + type: "boolean", + name: "imageSmoothing", + default: true + }, { type: "choice", name: 'brushMode', default: 'none', @@ -118,6 +122,8 @@ Wick.ToolSettings = class { this._settings = {}; this._onSettingsChangedCallback = () => {}; + this.project = null + this.resetAllSettings(); this.loadSettingsFromLocalstorage(); } diff --git a/engine/src/base/Project.js b/engine/src/base/Project.js index f3c0e3085..1d3925c4f 100644 --- a/engine/src/base/Project.js +++ b/engine/src/base/Project.js @@ -106,6 +106,7 @@ Wick.Project = class extends Wick.Base { this.activeTool = 'cursor'; this._toolSettings = new Wick.ToolSettings(); + this._toolSettings.project = this this._toolSettings.onSettingsChanged((name, value) => { if (name === 'fillColor') { this.selection.fillColor = value.rgba; diff --git a/engine/src/view/View.Path.js b/engine/src/view/View.Path.js index 3709a4659..177f16d79 100644 --- a/engine/src/view/View.Path.js +++ b/engine/src/view/View.Path.js @@ -49,6 +49,10 @@ Wick.View.Path = class extends Wick.View { this.importJSON(this.model.json); + if(this.model.pathType == 'image') { + this.item.smoothing = this.model.project.toolSettings.getSetting('imageSmoothing') + }; + // Apply onion skin style if Needed // (This is done here in the Path code because we actually change the style of the path // if the current onion skin mode is set to "outlines" or "tint") diff --git a/src/Editor/Modals/SettingsModal/EditorSettings/EditorSettings.jsx b/src/Editor/Modals/SettingsModal/EditorSettings/EditorSettings.jsx index 8a8c9a89a..843630a73 100644 --- a/src/Editor/Modals/SettingsModal/EditorSettings/EditorSettings.jsx +++ b/src/Editor/Modals/SettingsModal/EditorSettings/EditorSettings.jsx @@ -55,6 +55,13 @@ class EditorSettings extends Component { return (