Jump to content
Developer Wiki and Function Reference Links ×

SetTextureRefN not working as expected


Recommended Posts

I'm building a PIO with a few extrudes in it.  Each one is assigned to a different class.   The classes have both fill colors and textures applied.  In the OIP, I have a drop down menu called "Use Textures" which has the options "None", "Class Textures", and "Custom Textures".


When the "None" option is selected, I'd like the objects to just take on their class fill colors.  I thought that using SetTextureRefN with a -2 index on the 3 partID would set the texture to none, but it does not appear to do so.  In the example shown below, the wrap around at the top is set to the "Box" class.  The "Box" class has a dark grey fill, and a light green texture for testing.  


I am using the following code:

            Poly(---poly coordinates---);
        IF PUSE_TEXTURES='None' THEN SetTextureRefN(LNewObj,-2,3,0);


Is there something I'm missing, or does this not work the way I think it does?





Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...