Slastraf Posted April 12, 2021 Share Posted April 12, 2021 Most .mdl files have a hierarchy similar to this STATIC_MESH (< no surface) - OBJECT THING (< with surface) The surface count in the latter case will be zero, even if there is a surface in the OBJECT THING The workaround is to collapse the whole thing in the model editor. It would be nice if getsurface will check the first child for surface too if the top level doesn't have one because it is exported like this in most modeling software. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 12, 2021 Share Posted April 12, 2021 I think it is working exactly as it should. It gives you the surface count for that model. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Slastraf Posted April 12, 2021 Author Share Posted April 12, 2021 You wont be able to access the surface in a normal model Quote Link to comment Share on other sites More sharing options...
Josh Posted April 12, 2021 Share Posted April 12, 2021 Whatever routine you are doing should work recursively. Go through the entity kids and perform the action on all surfaces of all child models. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
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.