This ensures that noInitZone only affects the first call to shouldInitPtr. Previously this was causing issues with object properties not being initialized.
class MyScript : Spatial() {
val label = Label()
}
The problem here is when Label() is called it is still within the noInitZone, causing the underlying ptr to be not initialized.
This ensures that noInitZone only affects the first call to
shouldInitPtr
. Previously this was causing issues with object properties not being initialized.The problem here is when
Label()
is called it is still within thenoInitZone
, causing the underlyingptr
to be not initialized.