garrysmod-requests icon indicating copy to clipboard operation
garrysmod-requests copied to clipboard

Add surface.GetMaterial()

Open A1steaksa opened this issue 1 year ago • 3 comments

It would be nice to be able to retrieve the currently active material from the surface library in the way we can already get things like the active color.

A1steaksa avatar Apr 20 '24 21:04 A1steaksa

I should also mention that there are other setters in the surface library that don't have corresponding getters.

A1steaksa avatar Apr 20 '24 21:04 A1steaksa

Why?

robotboy655 avatar Apr 21 '24 11:04 robotboy655

I want to make additions to the surface library that generate IMeshes, but without the ability to retrieve the settings of the surface library I can’t achieve the same “set once use multiple” functionality as the rest of the surface functions.

I want to have the same calling convention as the rest of the surface library for consistency’s sake

A1steaksa avatar Apr 21 '24 12:04 A1steaksa