@babylonjs/gui-editor 5.0.3 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55852,6 +55852,12 @@ class WorkbenchComponent extends react__WEBPACK_IMPORTED_MODULE_1__.Component {
|
|
55852
55852
|
if (dropLocationControl instanceof gui_2D_controls_control__WEBPACK_IMPORTED_MODULE_3__.Container && //dropping inside a container control
|
55853
55853
|
this.props.globalState.draggedControlDirection === _globalState__WEBPACK_IMPORTED_MODULE_2__.DragOverLocation.CENTER) {
|
55854
55854
|
draggedControlParent.removeControl(draggedControl);
|
55855
|
+
const liveGui = this.props.globalState.liveGuiTexture;
|
55856
|
+
if (liveGui) {
|
55857
|
+
if (liveGui.rootContainer.children.indexOf(draggedControl) !== -1) {
|
55858
|
+
liveGui.rootContainer.removeControl(draggedControl);
|
55859
|
+
}
|
55860
|
+
}
|
55855
55861
|
dropLocationControl.addControl(draggedControl);
|
55856
55862
|
}
|
55857
55863
|
else if (dropLocationControl.parent) {
|