Add vector prototype to vector-like return values from C++ to JS. Fixes #2394.

This was SVN commit r14645.
This commit is contained in:
sanderd17
2014-01-23 11:32:08 +00:00
parent d677033c4c
commit fd187f466f
5 changed files with 246 additions and 145 deletions
+3
View File
@@ -91,6 +91,9 @@ public:
*/
static shared_ptr<ScriptRuntime> CreateRuntime(int runtimeSize = DEFAULT_RUNTIME_SIZE);
CScriptValRooted vector2Dprototype;
CScriptValRooted vector3Dprototype;
/**
* Constructor.
* @param nativeScopeName Name of global object that functions (via RegisterFunction) will