Fixed global skin rendering in res.skin.
This commit is contained in:
parent
453e319496
commit
619dafac6d
1 changed files with 4 additions and 2 deletions
|
@ -346,9 +346,11 @@ public class RequestEvaluator implements Runnable {
|
|||
throw new RuntimeException ("Skin "+res.skin+" not found in path.");
|
||||
sname = res.skin.substring (dot+1);
|
||||
}
|
||||
Skin skin = getSkin ((ESNode) sobj, sname);
|
||||
Skin skin = getSkin ((ESObject) sobj, sname);
|
||||
// get the java object wrapped by the script object, if not global
|
||||
Object obj = sobj == null ? null : sobj.toJavaObject ();
|
||||
if (skin != null)
|
||||
skin.render (this, (ESNode) sobj, null);
|
||||
skin.render (this, obj, null);
|
||||
else
|
||||
throw new RuntimeException ("Skin "+res.skin+" not found in path.");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue