13
0

Lua: Fix Slavable & Automatable inheritance

This allows to cast VCAs into Slavables.
This commit is contained in:
Robin Gareus 2017-10-20 00:40:37 +02:00
parent 2a310e5f79
commit ade3ea190c

View File

@ -979,6 +979,8 @@ LuaBindings::common (lua_State* L)
.deriveWSPtrClass <Stripable, SessionObject> ("Stripable")
.addCast<Route> ("to_route")
.addCast<VCA> ("to_vca")
.addCast<Slavable> ("to_slavable")
.addCast<Automatable> ("to_automatable")
.addFunction ("is_auditioner", &Stripable::is_auditioner)
.addFunction ("is_private_route", &Stripable::is_private_route)
.addFunction ("is_master", &Stripable::is_master)
@ -1037,8 +1039,6 @@ LuaBindings::common (lua_State* L)
.deriveWSPtrClass <Route, Stripable> ("Route")
.addCast<Track> ("to_track")
.addCast<Automatable> ("to_automatable")
.addCast<Slavable> ("to_slavable")
.addFunction ("set_name", &Route::set_name)
.addFunction ("comment", &Route::comment)
.addFunction ("active", &Route::active)