Drag and drop of blocks as PNG doesn't work

You do understand that it is important to not do anything to the blocks "downloaded as image", e.g. opening in an image editor and saving etc. They contain a specific set of metadata to allow for dragging into an ai2 project. Without that information the image is no longer a valid draggable block.

Yes, I know that. I save them with a right-click and drag them back to the surface.

I also can't take these defective blocks out of the backpack.

Empty the backpack ?

The backpack was empty.

Now I have the same problem with the cut-off blocks in the top left. Emptying the backpack doesn't help.

At least with the original image, it references an extension. The blocks shown in video that won't be dragged also reference an extension. Are you certain that extension has been loaded into the project at the point where you are trying to add the blocks? Otherwise, App Inventor won't know what to do with them.

Edit: Logged as issue 3335:

Well, the extension was actually not inserted. If the extension is present in the project, the insertion of the blocks also works.

Nevertheless, I find it concerning that such a small oversight can ruin the project. The block should be marked as an error but remain visible so that it can be removed.

I have noted the issue and in a future update we will warn the user that it isn't possible to important the blocks until they first add the extension.

Edit: Discussion here:

1 Like

@Pac-Man

It does not work exactly as described. No error message appears, the blocks remain invisible, and errors are displayed. However, after refreshing the browser, the blocks are visible and can be deleted.

This fix has not been implemented yet.
Until the release, please do not drag images that contain extension blocks when you do not have that extension in your project.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.