[fix] Fixed an issue that couldn't run script without elements.
This commit is contained in:
parent
f8c1793dfc
commit
7ec65a3625
@ -56,8 +56,10 @@ struct ElementScheduledControllerFactory(ScheduledController, ElementDrawer)
|
|||||||
builder.AddScheduledController(
|
builder.AddScheduledController(
|
||||||
new ScheduledController(element, varstore_, serial));
|
new ScheduledController(element, varstore_, serial));
|
||||||
}
|
}
|
||||||
|
if (elements[].length > 0) {
|
||||||
builder.AddElementDrawer(new ElementDrawer(program_, elements[]));
|
builder.AddElementDrawer(new ElementDrawer(program_, elements[]));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ElementProgram program_;
|
ElementProgram program_;
|
||||||
|
Reference in New Issue
Block a user