Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions addons/controller_icons/objects/ControllerIconTexture.gd
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ func _get_rid():
# This results in a one-frame white texture being displayed, which is not ideal. Investigate later.
_stitch_texture()
if _is_stitching_texture:
return 0
return RID()
else:
return 0
return RID()
return _texture_3d.get_rid() if not _textures.is_empty() else 0

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing this spot:

Suggested change
return _texture_3d.get_rid() if not _textures.is_empty() else 0
return _texture_3d.get_rid() if not _textures.is_empty() else RID()


#endregion