Sorry for being annoying, but I’m just trying to report bugs
The merge function still has an error:
If only 1 mesh is transferred to the merge array, then the position is no longer correct.
Example:
The top box has been moved 200 in the Z axis.
After merge, however, the mergeresult box has Z position = 0.
Maybe you could do a check and when only 1 mesh is in the array you give it straight back.
First, thx for looking into this bug that occured for me two weeks ago on the friday nightly update.
My new scene, heavily relying on merges of meshes and clones was not loading anymore since then.
The memory leach fix did do the job, sort of. The scene now loads again however I’m getting some weird artifacts in some cases. I’d like to stress out here that everything was working perfectly before with 5.0 and is also working perfectly with the current cdn version.
I’m not sure how to understand what’s going on. I believe it might be related to a second level merge of already merged meshes and instances.
May be take a focus on one of these merges obviously having an issue (name ‘suspensionrear’) in the nodes. There are more of these but, on the other hand, since just about everything in this scene is based on merged meshes and clones, and eventually re-merges, it’s kinda strange to see that this occurs only for some merges. Again, it was working perfectly as of friday two weeks ago. May be yours can explain (the ‘by-design’ part) or re-instate the ‘old’ behavior?
Yeah, that seems a bit odd. Would you be able to provide the meshes generating the suspensionrear or the axis_rear_suspension? they seem to be mostly influenced by the issue.
I was trying to check the code, but it’s hard to debug in a minified environment ( i mean babylon. Your code is not minified :-))
Thx Raanan, and yes, indeed my code isn’t minified at this point… it’s not even optimized;)
Yes, I can try to isolate these meshes and parts of the object constructor and share it with you (although you may have noticed the bug also occurs elsewhere, but not everywhere;)
I’ll be back and meanwhile, thx for your time looking into this…
Ok, having quickly done part of the work (isolating the meshes used in this part and just the clones and merges for this part of suspension), I can say I expected just about everything except this:
Ok, going to the second level debug, I’m getting more and more confused about what’s happening.
Re-instated the frame parent object and parented my merges to the object and is still working perfectly as shown here: