Arch: Fixed drag-n-drop in Arch groups

This commit is contained in:
Yorik van Havre 2016-09-16 19:57:06 -03:00
parent e05d2d5de3
commit 15c368d982

View File

@ -109,6 +109,11 @@ class _Floor:
def __setstate__(self,state): def __setstate__(self,state):
if state: if state:
self.Type = state self.Type = state
def onChanged(self,obj,prop):
if not hasattr(self,"Object"):
# on restore, self.Object is not there anymore
self.Object = obj
def execute(self,obj): def execute(self,obj):
# move children with this floor # move children with this floor