changed doom3 entity-create to add model key for brush-entities

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@75 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
spog
2006-06-03 12:41:12 +00:00
parent ecd25e066c
commit 70da7cd260
3 changed files with 43 additions and 6 deletions

View File

@@ -266,6 +266,11 @@ void Entity_createFromSelection(const char* name, const Vector3& origin)
{
Scene_parentSelectedBrushesToEntity(GlobalSceneGraph(), node);
Scene_forEachChildSelectable(SelectableSetSelected(true), instance.path());
if (g_pGameDescription->mGameType == "doom3")
{
Node_getEntity(node)->setKeyValue("model", Node_getEntity(node)->getKeyValue("name"));
}
}
// tweaking: when right clic dropping a light entity, ask for light value in a custom dialog box