Changed GetAttrPath to not warn on optional paths.
This commit is contained in:
@@ -36,7 +36,7 @@ Def.ActorScroller{
|
||||
Def.ActorFrame{
|
||||
Def.BitmapText{
|
||||
Name="ScrollItem1",
|
||||
Font="Common normal",
|
||||
Font="Common Normal",
|
||||
Text="Scroll Item 1",
|
||||
InitCommand=cmd(diffuse,color("#FF0000")),
|
||||
},
|
||||
@@ -44,14 +44,14 @@ Def.ActorScroller{
|
||||
Def.ActorFrame{
|
||||
Def.BitmapText{
|
||||
Name="ScrollItem2",
|
||||
Font="Common normal",
|
||||
Font="Common Normal",
|
||||
Text="Scroll Item 2",
|
||||
InitCommand=cmd(glow,color("#00FF0088")),
|
||||
},
|
||||
},
|
||||
Def.BitmapText{
|
||||
Name="ScrollItem3",
|
||||
Font="Common normal",
|
||||
Font="Common Normal",
|
||||
Text="Scroll Item 3",
|
||||
InitCommand=cmd(bob;effectmagnitude,8,0,4),
|
||||
},
|
||||
|
||||
@@ -46,7 +46,7 @@ function BGFitChoiceExample(params)
|
||||
{{-hw, -hh, 0}, params.soutline_color},
|
||||
}
|
||||
self:SetVertices(verts)
|
||||
self:SetLineWidth(1)
|
||||
self:SetLineWidth(2)
|
||||
self:SetDrawState{Mode= "DrawMode_LineStrip"}
|
||||
end
|
||||
},
|
||||
|
||||
+4
-1
@@ -417,7 +417,10 @@ bool ActorUtil::GetAttrPath( const XNode *pNode, const RString &sName, RString &
|
||||
RString sDir;
|
||||
if( !pNode->GetAttrValue("_Dir", sDir) )
|
||||
{
|
||||
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
|
||||
if(!optional)
|
||||
{
|
||||
LOG->Warn( "Relative path \"%s\", but path is unknown", sOut.c_str() );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
sOut = sDir+sOut;
|
||||
|
||||
Reference in New Issue
Block a user