Allow floors in floor object.

This commit is contained in:
Jonathan Wiedemann 2016-07-24 15:02:46 +02:00 committed by Yorik van Havre
parent 7425394df9
commit b114a051f4

View File

@ -64,7 +64,7 @@ class _CommandFloor:
floorobj = [] floorobj = []
warning = False warning = False
for obj in sel : for obj in sel :
if not Draft.getType(obj) in ["Site", "Building","Floor"] : if not Draft.getType(obj) in ["Site", "Building"] :
floorobj.append(obj) floorobj.append(obj)
else : else :
if link == True : if link == True :
@ -73,7 +73,7 @@ class _CommandFloor:
warning = True warning = True
if warning : if warning :
message = "You can put anything but Site, Building, Floor object in a Floor object.\n\ message = "You can put anything but Site, Building, Floor object in a Floor object.\n\
Floor object are not allowed to accept Site, Building or Floor object.\n\ Floor object are not allowed to accept Site or Building object.\n\
Site, Building and Floor objects will be removed from the selection.\n\ Site, Building and Floor objects will be removed from the selection.\n\
You can change that in the preferences.\n" You can change that in the preferences.\n"
self.printMessage( message ) self.printMessage( message )