-
Notifications
You must be signed in to change notification settings - Fork 22
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
Tool and game object selection bugfixes #160
Tool and game object selection bugfixes #160
Conversation
@JamesTKhan @antzGames (and anyone else) What do you think these changes? Do you know any other scenario with tools? |
I can test your branch maybe this weekend. |
I've found that if editing position or rotation or scale while a terrain brush tool was selected then nothing happens. Added as 7). The fix is missing yet. |
Did some testing. Here are my results and comments:
I think Up/Down > Flatten > Smooth tab TOOLS should all be in one TAB (something like below pic). The reason is that you will absolutely know which tool (up/down or flatten or smooth) is selected because its highlighted. Right now you need look at all the tabs to see what is selected. I know this is more work. Just wanted to let you know my opinion. What is the benefit of having these 3 tools on separate tabs? |
@antzGames Thank you that tested changes and wrote comment.
After selecting a brush tool the previous selected tool on toolbar (like translate tool, scale tool, etc) still visible as active. After fix the previous tool will be deselected. I've updated the description.
Thank you that found this issue, I will ad to the list. I think it is better if all brush tools are on separate tab, because each brush tool has different tip and later can be more options. What do you think if change tab on Terrain Component widget then applications clears brush tool selection and selects translate tool on toolbar. Like if you press ESC button, in 3). Like this: It is very easy to implement. |
I've added as 8). |
Yes this will work too. |
I've found that if editing any field in identifier widget while a terrain brush tool is selected then nothing happens. Added as 9). |
I've found the highlight for selected texture is missing on paint tab. Added as 10). |
I've fixed all issues what I've found. If you test this PR and find an issue related this please let write a comment. |
|
This looks awesome! Thanks for tracking down all these annoying little bugs. I have encountered them but never sat down and tried to list them all out. I noticed one interesting thing, I didn't even realize SceneGraph had a selected variable for GameObject. That seems weird since EditorScene already tracks that. I see that you are updating the value
As far as I can tell looking through the code sceneGraph.selected is not used anywhere (except being set, but never is read/used) at all. Might be some old left over code. I think we can remove If you can remove it, go ahead, otherwise remove your code that is setting sceneGraph.selected and I will remove the variable later. |
…ject-selection-bugfixes # Conflicts: # editor/CHANGES
Good catch. I removed this field. |
1) Clearing selection
Currently if select a game object and press ESC key then the selection is clearing but the game object is selected in the Outline and see it's properties on Inspector. And if change a property in Inspector then it doesn't change on game object.
Before fix:
After fix:
2) Selecting a brush tool
If selected a brush tool on terrain then the previous tool still selected on the toolbar, but not this tool the active. It's misleading. After fix, the previous selected tool (any tool from toolbar, like translate tool, rotate tool, etc) will be deselected.
Before fix:
After fix:
3) Going back from brush tool with ESC key
Currently If selected a terrain brush tool and pressing ESC key then brush tool will be deactivated but the previous tool on toolbar still visible as active but it doesn't active, the wireframe doesn't visible. After fix after pressing ESC key then the translate tool will be active and visible as active. And if press again ESC, then clear selection, see at 1).
Before fix:
After fix:
4) Selecting tool from toolbar while in brush tool
Currently if selecting a tool from toolbar while we are using a brush tool then the tool on toolbar will be visible as active but it doesn't active, the wireframe doesn't visible.
Before fix:
After fix:
5) Selecting asset while a tool was selected from toolbar
Currently if selecting an asset from assert dockbar while a tool was selected on a game object then the Outline still shows the previously selected game object and the wireframe still visible but the Inspector shows the asset''s data.
Before fix:
After fix:
6) Selecting asset while a terrain brush tool was selected
Currently if selecting an asset while a brush tool was selected then the brush tool still active.
Before fix:
After fix:
7) Editing position/rotation/scale while a terrain brush tool was selected
Currently if editing position or rotation or scale while a terrain brush tool was selected then nothing happens. After fix the whole transformation widget will be disabled if a brush tool was selected.
Before fix:
After fix:
8) Changing tab on terrain component widget after selected a brush tool
Currently if selected brush tool on a tab on terrain component widget and changing tab the selected tool still active and you don't see what tool active at the moment. After fix if changing tab on terrain component widget then the active tool will be the default translate tool.
Before fix:
After fix:
9) Editing name/visibility/tag while a terrain brush tool was selected
Similar to 7). Currently if editing name, visibility or tag in identifier widget while a terrain brush tool was selected then nothing happens. After fix the whole identifier widget will be disabled if a brush tool was selected.
Before fix:
After fix:
10) Missing highlight for selected texture on paint tab.
Currently if want to paint on a terrain the currently selected texture is not highlighted. After fix at paint tab open the first texture will be selected and highlighted and if select a texture it will be highlighted.
Before fix:
After fix: