Skip to content

Commit

Permalink
Fixed null in defaultEntityWidth/Height (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Dec 26, 2023
1 parent 81eb2d9 commit 3a02ad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ When enabling the "table-of-content" export option of an Entity, you will now ge
- Fixed a crash when deleting an Enum used in level custom fields.
- Fixed a crash in Selects when trying to go over the last element using a keyboard shortcut.
- Fixed log path partially cut in the Settings window.
- Fixed initial null in JSON defaultEntityWidth/Height values.



Expand Down
3 changes: 2 additions & 1 deletion src/electron.renderer/data/Project.hx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ class Project {

private function new() {
jsonVersion = Const.getJsonVersion();
defaultGridSize = Project.DEFAULT_GRID_SIZE;
bgColor = DEFAULT_WORKSPACE_BG;
defaultGridSize = Project.DEFAULT_GRID_SIZE;
defaultLevelBgColor = DEFAULT_LEVEL_BG;
defaultPivotX = defaultPivotY = 0;
defaultEntityWidth = defaultEntityHeight = Project.DEFAULT_GRID_SIZE;
filePath = new dn.FilePath();
flags = new Map();
levelNamePattern = DEFAULT_LEVEL_NAME_PATTERN;
Expand Down

0 comments on commit 3a02ad5

Please sign in to comment.