Commit dc976e88 authored by Mervill's avatar Mervill
Browse files

Type search now looks for classes not declared in a namespace (Common on Unity3D).

parent d420b17e
...@@ -171,6 +171,7 @@ local mt = { ...@@ -171,6 +171,7 @@ local mt = {
local class = rawget(package, classname) local class = rawget(package, classname)
if class == nil then if class == nil then
class = import_type(package.packageName .. ""."" .. classname) class = import_type(package.packageName .. ""."" .. classname)
if class == nil then class = import_type(classname) end
package[classname] = class -- keep what we found around, so it will be shared package[classname] = class -- keep what we found around, so it will be shared
end end
return class return class
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment