Gdevelop: Copy an object between Scenes and paste it over a Global Object --> Object automatically becomes Global

Created on 27 Feb 2019  ·  20Comments  ·  Source: 4ian/GDevelop

Describe the bug

As the title stands, pretty annoying bug. Here it is in action:

zmxep2o

To Reproduce

Steps to reproduce the behavior:

  1. Copy an object in a scene
  2. Paste it into another one, hovering on a Global Object

Other details

  • Latest Win10, GDevelop 5.0.0-beta64
) Not really a bug 😤Non optimal UI behavior

Most helpful comment

Maybe a yes/no prompt warning the user that the object will become global? Should warn the user that this can't be undone

All 20 comments

I noted this too.
If there was a clearer separation between normal and global objects, I guess it could be a feature rather than a bug...

So is the problem that an object is not indicated as global clearly enough in the list?

No, a common object is turned into a global one automatically on pasting, very annoying as scene > global object conversion can't be undo.

I assumed this was working as designed as once you paste the object from one scene to another it has to be global.....

If this isn't the case then Scenes can have objects with same name as other scene but not same object which could be quite confusing.
This could become complicated! 😄

This is indeed a feature :) A clearer separation would I guess do the trick?

Maybe a yes/no prompt warning the user that the object will become global? Should warn the user that this can't be undone

I can try to add the prompt tonight, if you guys think it would be a sufficient solution :)

Not sure if a prompt is really useful. If you made the mistake of clicking on the button to paste as a global object, you can remove the object.

I think a good first step would be to make things more obvious: if the object will be pasted as a global object, the context menu could display "Paste as a global object" instead of "Paste".

@4ian that's a fantastic idea!

Let me know if you give it a try or have questions :)

I'll try to add it tonight :) seems like another easy one to tackle

Ok I looked at this and now I am not sure if this is a bug or not.
@4ian have you removed the feature?

When you copy a normal object and paste it in another scene- you dont get a global object. It's another local object!

When you copy a global object and paste it in another scene - your pasted object is global again.

If I get this right- this report says that copying a local object from one scene and pasting it into another scene makes both the object and its copy in the other scene a global object. This is not happening for me

autoGlobalizeObjectBug

As I see it- the pasting should prompt the user if he/she wants to globalize it. Or there should be two pasting commands (paste and paste as global)

You have to paste on a global object to get it as a global object :)

On Thu, 28 Mar 2019, 21:29 Todor Imreorov, notifications@github.com wrote:

Ok I looked at this and now I am not sure if this is a bug or not.
@4ian https://github.com/4ian have you removed the feature?

When you copy a normal object and paste it in another scene- you dont get
a global object. It's another local object!

When you copy a global object and paste it in another scene - your pasted
object is global again.

If I get this right- this report says that copying a local object from one
scene and pasting it into another scene makes both the object and its copy
in the other scene a global object. This is not happening for me


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/4ian/GDevelop/issues/945#issuecomment-477778305, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABOIgtTuwAEY9EJ2lKdmbcUfhJGZBMz2ks5vbTRDgaJpZM4bUr4Y
.

@4ian I see. Will try again tonight :)

Btw the current context menu is a bit flawed. For example you cant get the menu until you create at least one object in the scene. To paste objects from another scene, you have to create an empty object. To paste them as global, you need to create one empty object and make it global

Wouldn't it be better if we had two paste commands whose availability doesnt depend on having an object in the scene or a global object in the scene?

Seems a great solution! Thanks for your work 👍

I also made it show the name of the copied object. Hope that is ok
displayClipObjName

Makes it even clearer imo

@MercurioC thank you :)
Now that this has been merged, can you close this issue please

What you've done should make things more intuitive. Closing this for now :)

Bumping this as I had to do it three times today:

@blurymind

Btw the current context menu is a bit flawed. For example you cant get the menu until you create at least one object in the scene. To paste objects from another scene, you have to create an empty object.

Was this page helpful?
0 / 5 - 0 ratings