Skip to content

Commit

Permalink
update pptr
Browse files Browse the repository at this point in the history
  • Loading branch information
Deficuet authored and Deficuet committed Jan 6, 2024
1 parent 7581e13 commit 75b4e9b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ internal class PPtrImpl<out T: UnityObject>: PPtr<T> {

@PublishedApi
internal inline fun <reified T: UnityObject> PPtrImpl<T>.safeGetObjInternal(): T? {
if (isNull) return null
val cache = getCache()
if (cache != null) return cache
return getAssetFile()?.let {
Expand Down

0 comments on commit 75b4e9b

Please sign in to comment.