mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Fix editor freeze on loading saved chunks.
This commit is contained in:
parent
08e19a9011
commit
69666f37c6
@ -1,3 +1,4 @@
|
||||
tool
|
||||
extends VoxelChunk
|
||||
class_name TVVoxelChunk
|
||||
|
||||
|
@ -40,15 +40,16 @@ var _player_file_name : String
|
||||
var _player : Entity
|
||||
|
||||
func _enter_tree():
|
||||
# for ch in get_children():
|
||||
# if ch is VoxelChunk:
|
||||
# var c : VoxelChunk = ch as VoxelChunk
|
||||
#
|
||||
# c.set_voxel_world(self)
|
||||
# c.set_library(library)
|
||||
# c.set_size(c.size_x, c.size_y, c.size_z, c.margin_start, c.margin_end)
|
||||
# add_chunk(c, c.position_x, c.position_y, c.position_z)
|
||||
# c.build_deferred()
|
||||
for ch in get_children():
|
||||
if ch is VoxelChunk:
|
||||
var c : VoxelChunk = ch as VoxelChunk
|
||||
|
||||
c.set_voxel_world(self)
|
||||
c.set_library(library)
|
||||
c.set_size(c.size_x, c.size_y, c.size_z, c.margin_start, c.margin_end)
|
||||
# c.is_build_threaded = false
|
||||
add_chunk(c, c.position_x, c.position_y, c.position_z)
|
||||
c.build_deferred()
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user