Arch: initial BuildingPart development

This commit is contained in:
Yorik van Havre
2018-04-26 20:22:47 -03:00
parent 05c26826ca
commit 2bef80dcc4
12 changed files with 1350 additions and 6 deletions

View File

@@ -324,6 +324,11 @@ class _Space(ArchComponent.Component):
p += o.EquipmentPower
if p != obj.EquipmentPower:
obj.EquipmentPower = p
elif prop == "Zone":
if obj.Zone:
if obj.Zone.ViewObject:
if hasattr(obj.Zone.ViewObject,"Proxy"):
obj.Zone.ViewObject.Proxy.claimChildren()
if hasattr(obj,"Area"):
obj.setEditorMode('Area',1)
ArchComponent.Component.onChanged(self,obj,prop)