diff --git a/CHANGELOG.md b/CHANGELOG.md index 278ae8b9..dca4b1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] + +### Changed +- Default values for Vec2 are now 0,0 instead of 1,1. + + ## [0.17.1] 2022-11-13 - Fixed a bug where pasting an entity would insert those entities twice. diff --git a/webapp/src/app/components/widgets/vec2-widget/vec2-widget.component.ts b/webapp/src/app/components/widgets/vec2-widget/vec2-widget.component.ts index 50f9d843..0efb46e2 100644 --- a/webapp/src/app/components/widgets/vec2-widget/vec2-widget.component.ts +++ b/webapp/src/app/components/widgets/vec2-widget/vec2-widget.component.ts @@ -26,8 +26,8 @@ export class Vec2WidgetComponent extends AbstractWidget implements OnChanges { if (!this.settings[this.key]) { const minSize = this.scaleSettings.baseSize; const value = { - x: minSize.x > 0 ? minSize.x : 1, - y: minSize.y > 0 ? minSize.y : 1 + x: minSize.x > 0 ? minSize.x : 0, + y: minSize.y > 0 ? minSize.y : 0 }; this.settings[this.key] = value; this.updateType(value);