fallback to hopobject if skin is not found in prototype

This commit is contained in:
hns 2001-02-19 17:54:16 +00:00
parent bf0ecdd923
commit c708ff0c29

View file

@ -658,10 +658,16 @@ public class RequestEvaluator implements Runnable {
if (thisObject != null && thisObject instanceof ESNode)
n = ((ESNode) thisObject).getNode ();
Prototype proto = app.getPrototype (n);
Skin skin = null;
if (proto != null)
return proto.getSkin (skinname);
else
return null;
skin = proto.getSkin (skinname);
// if we have a thisObject and didn't find the skin, try in hopobject
if (skin == null) {
proto = app.typemgr.getPrototype ("hopobject");
if (proto != null)
skin = proto.getSkin (skinname);
}
return skin;
}