Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable To Create New Assets Without Specifying Extension #41

Closed
Nocxr opened this issue Dec 23, 2020 · 1 comment
Closed

Unable To Create New Assets Without Specifying Extension #41

Nocxr opened this issue Dec 23, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Nocxr
Copy link

Nocxr commented Dec 23, 2020

Issue description:

Trying to create an asset of any type in the content window results in ignoring the enter key or rejecting the creation if clicked off unless the user specifies some sort of extension.

(I am trying to hit enter in the video on the first asset creation)

Steps to reproduce:

  1. Right click in the content window and try to create any new asset without specifying an extension

Minimal reproduction project:

  1. New or existing project

Flax version:

1.0.6214 (last commit pulled: 8198b73)

2020.12.22-18.16-1.mp4
@Nocxr
Copy link
Author

Nocxr commented Dec 23, 2020

Output log is spitting this out when trying to hit enter on an asset without an extension:

[ 01:55:04.010 ]: [Warning] Exception has been thrown during Window.OnKeyDown. Index was outside the bounds of the array.
Stack strace:
  at FlaxEngine.StringUtils.NormalizeExtension (System.String extension) [0x00000] in F:\Flax\FlaxEngine\Source\Engine\Utilities\StringUtils.cs:95 
  at FlaxEditor.Windows.ContentWindow.Rename (FlaxEditor.Content.ContentItem item, System.String newShortName) [0x00024] in F:\Flax\FlaxEngine\Source\Editor\Windows\ContentWindow.cs:300 
  at FlaxEditor.Windows.ContentWindow.<Rename>b__37_0 (FlaxEditor.GUI.RenamePopup renamePopup) [0x00000] in F:\Flax\FlaxEngine\Source\Editor\Windows\ContentWindow.cs:250 
  at FlaxEditor.GUI.RenamePopup.OnEnd () [0x0001d] in F:\Flax\FlaxEngine\Source\Editor\GUI\Popups\RenamePopup.cs:135 
  at FlaxEditor.GUI.RenamePopup.OnKeyDown (FlaxEngine.KeyboardKeys key) [0x00005] in F:\Flax\FlaxEngine\Source\Editor\GUI\Popups\RenamePopup.cs:147 
  at FlaxEngine.GUI.ContainerControl.OnKeyDown (FlaxEngine.KeyboardKeys key) [0x00021] in F:\Flax\FlaxEngine\Source\Engine\UI\GUI\ContainerControl.cs:1013 
  at FlaxEngine.Window.Internal_OnKeyDown (FlaxEngine.KeyboardKeys key) [0x00012] in F:\Flax\FlaxEngine\Source\Engine\Platform\Window.cs:215 
[ 01:55:04.011 ]: [Error] Exception has been thrown during Window.OnKeyDown.
Index was outside the bounds of the array

@mafiesto4 mafiesto4 added the bug Something isn't working label Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants