mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 08:55:33 +00:00
✨ upgrade addons
This commit is contained in:
parent
854fd2d8ac
commit
4f93aee203
125 changed files with 1706 additions and 1027 deletions
|
|
@ -19,7 +19,7 @@ func reset_settings(p_value) -> void:
|
|||
r16_size = Vector2i(1024, 1024)
|
||||
storage = null
|
||||
material = null
|
||||
texture_list = null
|
||||
assets = null
|
||||
|
||||
|
||||
func reset_terrain(p_value) -> void:
|
||||
|
|
@ -63,7 +63,7 @@ func start_import(p_value: bool) -> void:
|
|||
if color_file_name:
|
||||
img = Terrain3DUtil.load_image(color_file_name, ResourceLoader.CACHE_MODE_IGNORE)
|
||||
imported_images[Terrain3DStorage.TYPE_COLOR] = img
|
||||
if texture_list.get_texture_count() == 0:
|
||||
if assets.get_texture_count() == 0:
|
||||
material.show_checkered = false
|
||||
material.show_colormap = true
|
||||
storage.import_images(imported_images, import_position, import_offset, import_scale)
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@
|
|||
[sub_resource type="Terrain3DMaterial" id="Terrain3DMaterial_cjpaa"]
|
||||
show_checkered = true
|
||||
|
||||
[sub_resource type="Terrain3DTextureList" id="Terrain3DTextureList_yjkn1"]
|
||||
[sub_resource type="Terrain3DAssets" id="Terrain3DAssets_gbxcd"]
|
||||
|
||||
[node name="Importer" type="Terrain3D"]
|
||||
storage = SubResource("Terrain3DStorage_rmuvl")
|
||||
material = SubResource("Terrain3DMaterial_cjpaa")
|
||||
texture_list = SubResource("Terrain3DTextureList_yjkn1")
|
||||
assets = SubResource("Terrain3DAssets_gbxcd")
|
||||
script = ExtResource("1_60b8f")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue