mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
The mesh outline generator now won't connect to the mdr's changed event.
This commit is contained in:
parent
5db3ff2eb3
commit
5e63f45f0d
@ -6,17 +6,10 @@ var _mdr : MeshDataResource
|
||||
var lines : PoolVector3Array
|
||||
|
||||
func setup(mdr : MeshDataResource) -> void:
|
||||
if _mdr != null && _mdr == mdr:
|
||||
return
|
||||
|
||||
if _mdr:
|
||||
_mdr.disconnect("changed", self, "refresh")
|
||||
lines.resize(0)
|
||||
|
||||
_mdr = mdr
|
||||
|
||||
if _mdr:
|
||||
_mdr.connect("changed", self, "refresh")
|
||||
|
||||
|
||||
refresh()
|
||||
|
||||
func refresh():
|
||||
|
Loading…
Reference in New Issue
Block a user