Skip to content

Commit

Permalink
Set image texture correctly when uploaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Nov 5, 2022
1 parent 21988d0 commit 9b8a206
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions vsk_avatar_validator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const avatar_springbone_const = preload("res://addons/vsk_avatar/physics/avatar_

const vsk_pipeline_const = preload("res://addons/vsk_importer_exporter/vsk_pipeline.gd")

# FIXME: dictionary cannot be const????
var valid_node_whitelist = {
"AnimatedSprite3D": AnimatedSprite3D,
"Area3D": Area3D,
Expand Down Expand Up @@ -58,7 +57,6 @@ var valid_node_whitelist = {
"WorldEnvironment": WorldEnvironment,
}

# FIXME: dictionary cannot be const????
var valid_resource_whitelist = {
"AnimatedTexture": AnimatedTexture,
"ArrayMesh": ArrayMesh,
Expand Down
3 changes: 1 addition & 2 deletions vsk_exporter.gd
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ func convert_object(p_table: Dictionary, p_subobject: Object, p_root: Node, p_va

print("Image loaded...")

var new_image_texture: ImageTexture = ImageTexture.new()
new_image_texture.create_from_image(image) #, p_subobject.flags)
var new_image_texture: ImageTexture = ImageTexture.create_from_image(image)
p_table[p_subobject] = new_image_texture
elif p_subobject is Texture2DArray:
print("Texture2DArray %s processing..." % p_subobject.resource_path)
Expand Down

0 comments on commit 9b8a206

Please sign in to comment.