From 213efd20ad6c748b8c5d42bfe7570ebdefa5d0ca Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Feb 2015 11:06:05 +0000 Subject: [PATCH] Fixed matrix setup. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14714 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/lua/LuaScriptEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgPlugins/lua/LuaScriptEngine.cpp b/src/osgPlugins/lua/LuaScriptEngine.cpp index ce8ae26bf..916fe03f4 100644 --- a/src/osgPlugins/lua/LuaScriptEngine.cpp +++ b/src/osgPlugins/lua/LuaScriptEngine.cpp @@ -1942,7 +1942,7 @@ void LuaScriptEngine::initialize() lua_pop(_lua,1); } - // Set up the __newindex and __index methods for looking up implementations of Object properties + // Set up the __tostring methods to be able to convert tables into strings so they can be output for debugging purposes. { luaL_newmetatable(_lua, "LuaScriptEngine.Table"); @@ -3869,7 +3869,7 @@ void LuaScriptEngine::pushValue(const osg::Matrixd& value) const { for(unsigned int c=0; c<4; ++c) { - lua_pushnumber(_lua, r*4+c); lua_pushinteger(_lua, value(r,c)); lua_settable(_lua, -3); + lua_pushinteger(_lua, r*4+c); lua_pushnumber(_lua, value(r,c)); lua_settable(_lua, -3); } } }