예제 #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 ();
}
예제 #2
0
파일: Editor.cpp 프로젝트: Neoniet/upspring
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 ();
}