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