mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Remove useless todo
This commit is contained in:
@@ -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],
|
||||
});
|
||||
|
@@ -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,
|
||||
});
|
||||
|
@@ -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)
|
||||
};
|
||||
|
Reference in New Issue
Block a user