Jump to content

Meshes groups problem


Nico
 Share

Recommended Posts

Hi,

I've got a problem with a scene, I've got 2 groups with 2 children on each group, and when a load it I've got an error inside BabylonJS code :

BABYLON.Mesh.prototype.isVerticesDataPresent = function(kind) {    if (!this._vertexBuffers && this._delayInfo) {        return this._delayInfo.indexOf(kind) !== -1;    }    return this._vertexBuffers[kind] !== undefined;};

The problem here is that "this" has no property _vertexBuffers (when this is a "group").

 

groupsqlq.png

"Cubes" and "Icospheres" are groups (they didn't have any vertices), and their children are meshes.

 

You can find my babylon file inside this archive GroupsTests.zip

Link to comment
Share on other sites

I've quickly try something, it solves the problem, but I'm not sure that is the best way to do :

if (!this._vertexBuffers) {    if (this._delayInfo) {        return this._delayInfo.indexOf(kind) !== -1;    }    return false;}return this._vertexBuffers[kind] !== undefined; 
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...