Jump to content

GetSurface will only view top level object of .mdl


Slastraf
 Share

Recommended Posts

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.

Link to comment
Share on other sites

Whatever routine you are doing should work recursively. Go through the entity kids and perform the action on all surfaces of all child models.

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...