Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperLicht
clone mesh

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;



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "I?ternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact