Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix vector.from_string returning a table without vector metatable
- Loading branch information
Showing
with
2 additions
and 1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -61,7 +61,7 @@ function vector.from_string(s, init) | ||
if not (x and y and z) then | ||
return nil | ||
end | ||
return fast_new(x, y, z), np | ||
end | ||
|
||
function vector.to_string(v) | ||