Created
April 29, 2017 03:20
-
-
Save jerstlouis/78ff41ab3a8b03ee1083480c84692a6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void fressMeshCPUData(Mesh mesh) | |
{ | |
delete mesh.vertices; | |
delete mesh.normals; | |
delete mesh.texCoords; | |
delete mesh.tangents; | |
delete mesh.lightVectors; | |
delete mesh.colors; | |
} | |
void freeObjectCPUData(Object object) | |
{ | |
Object child; | |
if(object.mesh) | |
freeMeshCPUData(object.mesh); | |
for(child = object.firstChild; child; child = child.next) | |
freeObjectCPUData(child); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment