Fixes minor bugs in reference checker script.
Fixes missing template in pathfinding terrain demo This was SVN commit r13140.
This commit is contained in:
parent
1761a6253f
commit
03cc1b3a6b
BIN
binaries/data/mods/public/maps/scenarios/Pathfinding_terrain_demo.xml
(Stored with Git LFS)
BIN
binaries/data/mods/public/maps/scenarios/Pathfinding_terrain_demo.xml
(Stored with Git LFS)
Binary file not shown.
@ -76,7 +76,7 @@ sub add_entities
|
||||
push @roots, $path;
|
||||
if ($ent->{Entity}{VisualActor})
|
||||
{
|
||||
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{Actor}{' content'} ];
|
||||
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{Actor}{' content'} ] if $ent->{Entity}{VisualActor}{Actor};
|
||||
push @deps, [ $path, "art/actors/" . $ent->{Entity}{VisualActor}{FoundationActor}{' content'} ] if $ent->{Entity}{VisualActor}{FoundationActor};
|
||||
}
|
||||
|
||||
@ -194,10 +194,16 @@ sub add_scenarios_xml
|
||||
{
|
||||
if ($template =~ /^actor\|(.*)$/)
|
||||
{
|
||||
# Handle special 'actor|' case
|
||||
push @deps, [ $f, "art/actors/$1" ];
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($template =~ /^resource\|(.*)$/)
|
||||
{
|
||||
# Handle special 'resource|' case
|
||||
$template = $1;
|
||||
}
|
||||
push @deps, [ $f, "simulation/templates/$template.xml" ];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user