From 6e8a8d68680a35d675a571913796cc6ced3a5c97 Mon Sep 17 00:00:00 2001 From: D8H Date: Mon, 20 May 2024 14:15:25 +0200 Subject: [PATCH] Fix shared properties not being add to the scene when adding a behavior from the instruction editor (#6577) --- .../EventsSheet/InstructionEditor/InstructionEditorDialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newIDE/app/src/EventsSheet/InstructionEditor/InstructionEditorDialog.js b/newIDE/app/src/EventsSheet/InstructionEditor/InstructionEditorDialog.js index 41a2ef8bdf68..d26d69706469 100644 --- a/newIDE/app/src/EventsSheet/InstructionEditor/InstructionEditorDialog.js +++ b/newIDE/app/src/EventsSheet/InstructionEditor/InstructionEditorDialog.js @@ -182,6 +182,9 @@ const InstructionEditorDialog = ({ behaviorType: type, parentEditor: 'instruction-editor-dialog', }); + if (scope.layout) { + scope.layout.updateBehaviorsSharedData(project); + } } // Re-choose the same object to force recomputation of chosenObjectInstructionsInfoTree