Fix class doesn't exist error.

This commit is contained in:
Relintai 2020-06-13 15:19:41 +02:00
parent 0a3ddf1162
commit bb955630fc
2 changed files with 3 additions and 3 deletions

View File

@ -269,7 +269,7 @@ _global_script_classes=[ {
"language": "GDScript",
"path": "res://voxelman/world/TVVoxelMesher.gd"
}, {
"base": "VoxelMesherUVTransvoxel",
"base": "VoxelMesherMarchingCubes",
"class": "TestVoxelMesher",
"language": "GDScript",
"path": "res://voxelman/world/TestVoxelMesher.gd"

View File

@ -1,4 +1,4 @@
extends VoxelMesherUVTransvoxel
extends VoxelMesherMarchingCubes
class_name TestVoxelMesher
# Copyright Péter Magyar relintai@gmail.com
@ -388,7 +388,7 @@ func _add_chunk(buffer : VoxelChunk) -> void:
var regular_cell_class : int = get_regular_cell_class(case_code)
var cell_data : TransvoxelCellData = get_regular_cell_data(regular_cell_class)
var cell_data : MarchingCubesCellData = get_regular_cell_data(regular_cell_class)
var index_count : int = cell_data.get_triangle_count() * 3
var vertex_count : int = cell_data.get_vertex_count()