fallback to hopobject if skin is not found in prototype
This commit is contained in:
parent
bf0ecdd923
commit
c708ff0c29
1 changed files with 9 additions and 3 deletions
|
@ -658,10 +658,16 @@ public class RequestEvaluator implements Runnable {
|
||||||
if (thisObject != null && thisObject instanceof ESNode)
|
if (thisObject != null && thisObject instanceof ESNode)
|
||||||
n = ((ESNode) thisObject).getNode ();
|
n = ((ESNode) thisObject).getNode ();
|
||||||
Prototype proto = app.getPrototype (n);
|
Prototype proto = app.getPrototype (n);
|
||||||
|
Skin skin = null;
|
||||||
if (proto != null)
|
if (proto != null)
|
||||||
return proto.getSkin (skinname);
|
skin = proto.getSkin (skinname);
|
||||||
else
|
// if we have a thisObject and didn't find the skin, try in hopobject
|
||||||
return null;
|
if (skin == null) {
|
||||||
|
proto = app.typemgr.getPrototype ("hopobject");
|
||||||
|
if (proto != null)
|
||||||
|
skin = proto.getSkin (skinname);
|
||||||
|
}
|
||||||
|
return skin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue