forked from 0ad/0ad
Added default, arbitrary-sized Footprint component to actor entities. Makes their selection outlines show up in Atlas. Fixes #1477.
This was SVN commit r11997.
This commit is contained in:
parent
0b57709d17
commit
f660f834bf
@ -380,6 +380,8 @@ void CCmpTemplateManager::ConstructTemplateActor(const std::string& actorName, C
|
||||
std::string name = utf8_from_wstring(CParamNode::EscapeXMLString(actorNameW));
|
||||
std::string xml = "<Entity>"
|
||||
"<VisualActor><Actor>" + name + "</Actor></VisualActor>"
|
||||
// arbitrary-sized Footprint definition to make actors' selection outlines show up in Atlas
|
||||
"<Footprint><Circle radius='2.0'/><Height>1.0</Height></Footprint>"
|
||||
"<Selectable>"
|
||||
"<EditorOnly/>"
|
||||
"<Overlay><Texture><MainTexture>actor.png</MainTexture><MainTextureMask>actor_mask.png</MainTextureMask></Texture></Overlay>"
|
||||
|
Loading…
Reference in New Issue
Block a user