오류수정
This commit is contained in:
parent
6c86b1181c
commit
10b88ede0f
@ -594,13 +594,12 @@ export default function Roof2(props) {
|
||||
}
|
||||
|
||||
const changeLength = (e) => {
|
||||
setScale(e)
|
||||
const polygon = canvas?.getActiveObject()
|
||||
|
||||
if (polygon.type !== 'QPolygon') {
|
||||
if (polygon?.type !== 'QPolygon') {
|
||||
return
|
||||
}
|
||||
|
||||
setScale(e)
|
||||
polygon.setScaleX(e)
|
||||
|
||||
canvas?.renderAll()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user