Remove useless todo

This commit is contained in:
Davy Hélard
2025-09-05 17:05:09 +02:00
parent 08892b68d4
commit 510a699c03
3 changed files with 2 additions and 8 deletions

View File

@@ -1374,7 +1374,6 @@ namespace gdjs {
this._selection.clear();
}
if (objectUnderCursor) {
// TODO Check if the object is locked
const layer = this.getEditorLayer(objectUnderCursor.getLayer());
if (
layer &&
@@ -2028,6 +2027,7 @@ namespace gdjs {
return;
}
}
// TODO Move the object according to the last cursor position
this._sendSelectionUpdate({
addedObjects: [this._draggedNewObject],
});

View File

@@ -440,7 +440,7 @@ export const EmbeddedGameFrame = ({
previewDebuggerServer.sendMessage(debuggerId, {
command: 'dragNewInstance',
x: clientOffset.x,
y: clientOffset.y,
y: clientOffset.y - (31 + 40),
name,
dropped: true,
});

View File

@@ -367,8 +367,6 @@ export default class SceneEditor extends React.Component<Props, State> {
}
onReceiveInstanceChanges(changes: InstanceChanges) {
// TODO: ensure this works for external layouts too.
// TODO: adapt all of this to get all instances in one shot.
// and reorganize this.
const modifiedInstances: gdInitialInstance[] = [];
@@ -1145,10 +1143,6 @@ export default class SceneEditor extends React.Component<Props, State> {
*/
_onInstancesModified = (instances: Array<gdInitialInstance>) => {
this._sendUpdatedInstances(instances);
// TODO: Create a new export mode that will generate only the bare minimum
// so that the runtime game has up-to-date data without unnecessary reloading scripts.
// Once the mode exists, call it here.
// this._exportDataOnly();
this.forceUpdate();
//TODO: Save for redo with debounce (and cancel on unmount)
};