프로젝트

일반

사용자정보

개정판 1551b327

ID1551b32771fbd2037528c0f3f42c6cd325649297
상위 6517cead
하위 af2e60f2

함의성이(가) 2년 이상 전에 추가함

fix connection point from db load

Change-Id: I136ed62a861b640e98fb752b47377e02b14e3b7b

차이점 보기:

DTI_PID/DTI_PID/Shapes/EngineeringConnectorItem.py
546 546

  
547 547
            self._connectedItem = uuid.UUID(connectedItemStr) if connectedItemStr and connectedItemStr != 'None' else \
548 548
                None
549
            self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
549
            #self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
550 550
            # self.sceneConnectPoint = (float(sceneConnectPointStr[0]), float(sceneConnectPointStr[1]))
551 551

  
552 552
            self.setBrush(Qt.yellow) if self._connectedItem else self.setBrush(Qt.blue)
......
572 572
                self._connected_at = QEngineeringAbstractItem.CONNECTED_AT_PT
573 573

  
574 574
            connectedItemStr = node.find('CONNECTEDITEM').text
575
            connectPointStr = node.find('CONNECTPOINT').text.split(',')
576
            sceneConnectPointStr = node.find('SCENECONNECTPOINT').text.split(',')
575
            #connectPointStr = node.find('CONNECTPOINT').text.split(',')
576
            #sceneConnectPointStr = node.find('SCENECONNECTPOINT').text.split(',')
577 577

  
578 578
            self._connectedItem = uuid.UUID(connectedItemStr) if connectedItemStr != 'None' else None
579
            self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
579
            #self.connectPoint = (float(connectPointStr[0]), float(connectPointStr[1]))
580 580
            # self.sceneConnectPoint = (float(sceneConnectPointStr[0]), float(sceneConnectPointStr[1])) 2020.2.8
581 581

  
582 582
            self.setBrush(Qt.yellow) if self._connectedItem else self.setBrush(Qt.blue)

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)