File tree Expand file tree Collapse file tree
app/src/core/service/dataManageService/dragFileIntoStageEngine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ export namespace DragFileIntoStageEngine {
109109
110110 project . stageManager . add ( textNode ) ;
111111 }
112+ project . stageManager . updateReferences ( ) ;
112113 }
113114
114115 /**
@@ -150,6 +151,7 @@ export namespace DragFileIntoStageEngine {
150151
151152 project . stageManager . add ( textNode ) ;
152153 }
154+ project . stageManager . updateReferences ( ) ;
153155 }
154156
155157 /**
@@ -277,6 +279,8 @@ export namespace DragFileIntoStageEngine {
277279 mouseSections [ 0 ] . collisionBox . getRectangle ( ) ,
278280 ) ,
279281 ) ;
282+ } else {
283+ project . stageManager . updateReferences ( ) ;
280284 }
281285 }
282286
@@ -295,6 +299,7 @@ export namespace DragFileIntoStageEngine {
295299 } ) ;
296300
297301 project . stageManager . add ( textNode ) ;
302+ project . stageManager . updateReferences ( ) ;
298303 }
299304
300305 export async function handleDropSvg ( project : Project , filePath : string ) {
@@ -307,5 +312,6 @@ export namespace DragFileIntoStageEngine {
307312 attachmentId,
308313 } ) ;
309314 project . stageManager . add ( entity ) ;
315+ project . stageManager . updateReferences ( ) ;
310316 }
311317}
You can’t perform that action at this time.
0 commit comments