Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
bug: 如果 super 中不存在的值为设置为 NoExist ,而 child 有这个值的话,child 也只能取到 nil 值。
修改: 在 super 检查中,忽略 NotExist.
测试例子:
创建一个蓝图类 BP_A,然后又增加了一个 BP_A 的子类蓝图 BP_A_Child, 并在 BP_A_Child 中加入了一个 Cube Component
然后在 Lua 中,BP_A 有 BP_A_C, BP_A_Child_C 继承 lua class BP_A_C。
任何时候, 如果 BP_A_C 中尝试去检查
self.Cube
就会将 mt 设置为 NoExist。 之后 BP_A_Child_C 虽然有 self.Cube, 但因为 Super 已经把 Cube 设置为 NoExist, 他将永远取不到 self.Cube 了。