1
This commit is contained in:
@@ -174,8 +174,10 @@ export class CanvasManager {
|
|||||||
if (!activeID) return
|
if (!activeID) return
|
||||||
const activeObject = this.getObjectById(activeID)
|
const activeObject = this.getObjectById(activeID)
|
||||||
if (!activeObject) return
|
if (!activeObject) return
|
||||||
const parentId = activeObject.info?.parentId
|
if (object.type !== "group") {
|
||||||
if (!object.info.parentId) object.info.parentId = parentId
|
const parentId = activeObject.info?.parentId
|
||||||
|
if (!object.info.parentId) object.info.parentId = parentId
|
||||||
|
}
|
||||||
const index = this.getObjects().indexOf(activeObject)
|
const index = this.getObjects().indexOf(activeObject)
|
||||||
this.canvas.moveTo(object, index + 1)
|
this.canvas.moveTo(object, index + 1)
|
||||||
// await this.sortObjectByIds(ids, isRecord)
|
// await this.sortObjectByIds(ids, isRecord)
|
||||||
|
|||||||
Reference in New Issue
Block a user