Forum

Removing copied objects from scene

02 July 2015 15:31 #2903
I have a source object in mi scene, and I need to be able to copy up to 7 copies of that object (that's no problem)
but how can I delete the selected ones?

I'm trying to use:
id = m_scenes.get_object_data_id(_selected_obj);
if(id > 0){
	m_data.unload(id);
	_selected_obj = null;
			      	
}


but the id always returns as zero. The whole scene is deleted!
Website: http://www.danielfrgordillo.com | YouTube: https://www.youtube.com/user/dranath999
02 July 2015 15:49 #2904
nevermind. I was using the wrong code.

should've used this:
m_scenes.remove_object(_selected_obj);
Website: http://www.danielfrgordillo.com | YouTube: https://www.youtube.com/user/dranath999
 
Please register or log in to leave a reply.