Search Issue Tracker
Duplicate
Votes
0
Found in
2017.1.0b1
Issue ID
900597
Regression
Yes
Cannot paint a material on a terrain
Steps to reproduce :
- create a terrain
- go to Paint the terrain texture
- assign a texture
- assign a second texture
- try to paint using the second texture and notice that it doesn't work
Exception: Float array size wrong (layers should be 2)
UnityEngine.TerrainData.SetAlphamaps (Int32 x, Int32 y, System.Single[,,] map) (at C:/buildslave/unity/build/artifacts/generated/common/modules/Terrain/TerrainDataBindings.gen.cs:656)
UnityEditor.SplatPainter.Paint (Single xCenterNormalized, Single yCenterNormalized, Int32 splatIndex) (at C:/buildslave/unity/build/Editor/Mono/TerrainEditor/TerrainInspector.cs:121)
UnityEditor.TerrainInspector.OnSceneGUICallback (UnityEditor.SceneView sceneView) (at C:/buildslave/unity/build/Editor/Mono/TerrainEditor/TerrainInspector.cs:1892)
UnityEditor.SceneView.CallOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:2397)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1715)
UnityEditor.SceneView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/SceneView/SceneView.cs:1585)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
*Note :
Regression from 2017a3.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
This is a duplicate of issue #898834