[luabind] No matching overload found
Brought to you by:
arvidn,
daniel_wallin
From: Сергей В. <iva...@gm...> - 2015-04-01 11:22:48
|
Why luabind can't use this function? C++ code: Vector3f createVector3f ( float x, float y, float z ); Lua Code: function UiControl:setScale ( value ) log ( "UiControl:setScale: " .. value ) local s = createVector3f ( value, value, 1 ) --error self.mesh:setScale ( s ) self.mesh:update () end Output: UiControl:setScale: 1 No matching overload found, candidates: Vector3f createVector3f(custom [f],custom [f],custom [f]) I know, this code works: local s = createVector3f ( 1, 1, 1 ) Why it doesn't when I pass an variable? Point me, please, where to dig. |