Forum

Removing copied objects from scene

02 July 2015 15:31
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!
02 July 2015 15:49
nevermind. I was using the wrong code.

should've used this:
m_scenes.remove_object(_selected_obj);
 
Please register or log in to leave a reply.