Skip to content

Commit

Permalink
Hide slope option until implemented. #96
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Jul 3, 2023
1 parent 72293b7 commit fea82e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project/addons/terrain/editor/components/ui.gd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func _on_tool_changed(p_tool: Terrain3DEditor.Tool, p_operation: Terrain3DEditor
to_hide.push_back("color picker")
to_hide.push_back("roughness")
to_hide.push_back("roughness picker")
to_hide.push_back("slope")

elif p_tool == Terrain3DEditor.TEXTURE:
to_hide.push_back("height")
Expand All @@ -73,18 +74,21 @@ func _on_tool_changed(p_tool: Terrain3DEditor.Tool, p_operation: Terrain3DEditor
to_hide.push_back("color picker")
to_hide.push_back("roughness")
to_hide.push_back("roughness picker")
to_hide.push_back("slope")

elif p_tool == Terrain3DEditor.COLOR:
to_hide.push_back("height")
to_hide.push_back("height picker")
to_hide.push_back("roughness")
to_hide.push_back("roughness picker")
to_hide.push_back("slope")

elif p_tool == Terrain3DEditor.ROUGHNESS:
to_hide.push_back("height")
to_hide.push_back("height picker")
to_hide.push_back("color")
to_hide.push_back("color picker")
to_hide.push_back("slope")

toolbar_settings.hide_settings(to_hide)

Expand Down

0 comments on commit fea82e2

Please sign in to comment.