The mesh outline generator now won't connect to the mdr's changed event.

This commit is contained in:
Relintai 2021-12-31 00:44:01 +01:00
parent 5db3ff2eb3
commit 5e63f45f0d

View File

@ -6,17 +6,10 @@ var _mdr : MeshDataResource
var lines : PoolVector3Array var lines : PoolVector3Array
func setup(mdr : MeshDataResource) -> void: func setup(mdr : MeshDataResource) -> void:
if _mdr != null && _mdr == mdr: lines.resize(0)
return
if _mdr:
_mdr.disconnect("changed", self, "refresh")
_mdr = mdr _mdr = mdr
if _mdr:
_mdr.connect("changed", self, "refresh")
refresh() refresh()
func refresh(): func refresh():