Just keep a link between the surface, brush and texture name.
Type SurfTex
Field surf
Field texname$
;Field brush
End Type
Remember to free them when you are finished (GetBrushTexture, GetSurfaceBrush, GetEntityBrush create new copies).
Type SurfTex
Field surf
Field texname$
;Field brush
End Type
Remember to free them when you are finished (GetBrushTexture, GetSurfaceBrush, GetEntityBrush create new copies).