Page MenuHomeFeedback Tracker

Function ModifyLayers of WorldEditorAPI does not work
New, NormalPublic

Description

Using the ModifyLayers function with the TerrainToolType.SURFACE_PAINT TerrainAction does not work or is missing a FilterMorphOperation.LayerAdd or FilterMorphOperation.SurfacePaint.
Using the FilterMorphOperation.Add with the function leads to a crash of the Tools and any other morph operation does nothing.

This makes it currently impossible to edit the terrain surfaces with a script or tools.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
General
Steps To Reproduce

Tool used in testing:

  1. Create a project with a standard world setup
  2. Put the script file under Scripts/WorkbenchGame/WorldEditor
  3. Compile the Script and Reload WB Scripts
  4. Open the tool select a surface material and click the "Paint Area(s)" Button

> The Workbench Crashes.

Expected Behavior: The ground between [10,10] and [15,15] get painted with the selected surface.

Event Timeline