Sign in to follow this  

The Missing Texture


K1eiN
  • Pending

After placing walls , using mouse to hold other items cannot show the texture. 468167539_QQ20211030184936.thumb.png.afbc153702dcacc225956da7fb89b5c3.png


Steps to Reproduce

1. Place the wall.

2. Swap other items to hold.

3. The texture was missing.

Sign in to follow this  


User Feedback


This seems to be caused by placer not unhiding the icon when being removed:

function Placer:OnRemoveEntity()
	if self.builder ~= nil and self.hide_inv_icon then
		self.builder:PushEvent("onplacerhidden")
	end
end

It also makes sense to use self.hide_inv_icon only for invobject placers:

function Placer:SetBuilder(builder, recipe, invobject)
	self.builder = builder
	self.recipe = recipe
	self.invobject = invobject
	self.hide_inv_icon = self.hide_inv_icon and invobject ~= nil
	self.inst:StartWallUpdatingComponent(self)
end

Share this comment


Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now