Example #1
0
void EditorUI::menuObjectMerge()
{
    vector <MdlObject*> sel = model->GetSelectedObjects ();

    for (int a=0; a<sel.size(); a++) {
        MdlObject *parent = sel [a]->parent;
        if (parent) parent->MergeChild (sel[a]);
    }
    Update ();
}
Example #2
0
void EditorUI::menuObjectMerge()
{
	vector <MdlObject*> sel = model->GetSelectedObjects ();

	for (unsigned int a=0;a<sel.size();a++) {
		MdlObject *parent = sel [a]->parent;
		if (parent) parent->MergeChild (sel[a]);
	}
	BACKUP_POINT("Selected objects merged");
	Update ();
}