steve3d Posted August 29, 2012 Share Posted August 29, 2012 We use validator a lot in our common works. but recently, I've found that validator always ignores some files which actually are referenced by current world. try this by youself, Open a world contains ObjectMeshCluster or many NodeReference, the validator will told you there are some node file, and some mesh file are not used in current world. but those node file are NodeReference, and mesh files are ObjectMeshCluster's mesh. Link to comment
manguste Posted September 10, 2012 Share Posted September 10, 2012 Fixed in the released update :) Link to comment
steve3d Posted September 13, 2012 Author Share Posted September 13, 2012 ah~~ seems it's not fixed, all ObjectMeshCluster still reported as unused mesh files. Link to comment
steve3d Posted September 13, 2012 Author Share Posted September 13, 2012 the validate_meshes function in editor_validator.h should be like this: int validate_meshes(string path) { int ret = 1; // mesh names string meshes[]; foreach(Object object; objects) { string name; switch(object.getType()) { case NODE_OBJECT_MESH: name = ObjectMesh(object).getMeshName(); break; case NODE_OBJECT_MESH_SKINNED: name = ObjectMeshSkinned(object).getMeshName(); break; case NODE_OBJECT_MESH_CLUSTER: name = ObjectMeshCluster(object).getMeshName(); break; case NODE_OBJECT_MESH_CLUTTER: name = ObjectMeshClutter(object).getMeshName(); break; default: continue; } meshes.append(name); } // validate directory ret &= validate_directory(meshes,path); return ret; } then the ObjectMeshCluster and ObjectMeshClutter should be fine. Link to comment
steve3d Posted September 13, 2012 Author Share Posted September 13, 2012 even more, the validator told me that current world and world script file are unused files too.. Link to comment
manguste Posted September 25, 2012 Share Posted September 25, 2012 I'm afraid I cannot reproduce it. Are you sure you've updated to the latest script? If you did, can you give step-by-step details? Link to comment
steve3d Posted September 26, 2012 Author Share Posted September 26, 2012 strange, see these highlighted part: this ObjectMeshCluster is enabled and it's a child of other objects. Link to comment
Recommended Posts