Skip to content

Baking Height Map Errors with Density Resolution #179

@zachEastin

Description

@zachEastin

When the terrain's resolution type is set to density the Height Map baking in the menu next to the terrain layers errors out:

Python: Traceback (most recent call last):
  File "C:\Users\Zach\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\vscode_development\true_terrain\scripts\ops\terrain_ops\bake_terrain.py", line 146, in execute
    fpath = object_to_heightmap(
            ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Zach\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\vscode_development\true_terrain\scripts\ops\terrain_ops\bake_terrain.py", line 29, in object_to_heightmap
    coords.resize((x_res * y_res, 3))
ValueError: cannot resize an array that references or is referenced
by another array in this way.
Use the np.resize function or refcheck=False

Metadata

Metadata

Labels

BugSomething isn't working

Type

No fields configured for Bug.

Projects

Status
v6

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions