SetMaterial Help

function ENT:SetMyType(type)
	if type == 1 then
		self.Entity:SetMaterial("nature/blendsandsand007a")
		self.type = 1
	else
		self.Entity:SetMaterial("models/shiny")
		self.type = 0
	end
	print("Tried to change the texture")
end

When this function is called, the SetMaterial(“models/shiny”) works fine but then when SetMaterial(“nature/blendsandsand007a”) is called I get this error in console.

Material nature/blendsandsand007a does not support vertex format used by the mesh (maybe missing fields or mismatched vertex compression?), mesh will not be rendered. Grab a programmer!

The entity type you’re setting the material on doesn’t like it. Check the vmt of the material.

Thanks. Problem solved.