improve Asset::ObjectEntry#type
This commit is contained in:
1 parent
0ab1fd27a6
commit
d37c72de80
1 file changed
+1
-1
@@ -56,7 +56,7 @@ module Mikunyan
|
||||
# Returns object type name string
|
||||
# @return [String,nil] type name
|
||||
def type
|
||||
klass&.type_tree&.tree&.type || Mikunyan::Constants::CLASS_ID2NAME[class_id]
|
||||
klass&.type_tree&.tree&.type || Mikunyan::Constants::CLASS_ID2NAME[class_id || klass&.class_id]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user