 samehhelaly Registered User |
Quote
|
2013-05-02 22:07:16 |
|
suppose i make a clone to a mish and i want know if it was created or not created yet to avoid cloning another one ...,,also i want to set the new cloned mesh to have all the properties the main mesh have ,,,how to write this on javascript ,,,thanks
|
 niko Moderator |
Quote
|
2013-05-03 06:12:15 |
|
Somewhere store a variable to remember if you cloned it already. Like
var alreadyCloned = true;
And later test for it before cloning
if (alreadyCloned == true) return;
|