SSkinnedMeshBuffer append methods are empty

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

SSkinnedMeshBuffer append methods are empty

Post by Mel »

this comes from the last SVN (4011).

Code: Select all

 
//! A mesh buffer able to choose between S3DVertex2TCoords, S3DVertex and S3DVertexTangents at runtime
 
struct SSkinMeshBuffer : public IMeshBuffer
 
{
..
        //! append the vertices and indices to the current buffer
 
        virtual void append(const void* const vertices, u32 numVertices, const u16* const indices, u32 numIndices) {}
 
 
 
        //! append the meshbuffer to the current buffer
 
        virtual void append(const IMeshBuffer* const other) {}
...
};
 
the append methods are empty. But following the inheritance, using these methods won't ever do anything. Also, some other classes that inherit from IMeshBuffer interface and implement them, have their append methods empty. The only implementation of these methods that works is in the CMeshBuffer class template. Shouldn't those methods have anything on them? The reason is the following:

The objects that derive from the ISkinnedMesh interface can only be used with the ISceneManager::createSkinnedMesh(), which returns a CSkinnedMesh object, This class doesn't have its include file exposed in the API, so, this is the only way. Then, this interface has a method to add new meshbuffers within it, which in turn, are SSkinMeshBuffer structs. And when the methods append(...) are called, their code is empty, and nothing happens, making for instance, dificulting the creation of new skinned mesh loaders when this structure seems that was meant to give more ease to this task.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
JVr
Posts: 28
Joined: Wed Oct 19, 2011 2:32 pm

Re: SSkinnedMeshBuffer append methods are empty

Post by JVr »

I've got similar problem http://irrlicht.sourceforge.net/forum/v ... =7&t=45295 not solved unfortunately :)
Post Reply