Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Paste Properties" does not refresh the displayed values of exported variables in the Inspector #61188

Open
HerrSersch opened this issue May 19, 2022 · 1 comment

Comments

@HerrSersch
Copy link
Contributor

Godot version

3.5 RC 1

System information

Windows 10

Issue description

Note: This issue also exists in 3.4.4 stable, but seems to be fixed in Godot 4 Alpha 8. Maybe the fix could be backported?

Exported Script Variables values do not refresh correctly in the Inspector when using the Paste Properties menu option from the Manage Object Properties menu (the screwdriver icon). The values do change internally and are saved correctly, but the new pasted values are not displayed until the Inspector is refreshed, for example by selecting a different node and then selecting the node with the pasted properties again.

This only affects values from exported variables. Default variables from a node, like the transform properties of a Spatial node, are updated instantly.

Steps to reproduce

  1. Create a script that has exported variables
  2. Attach this script to two different nodes
  3. Change the values of one of the node's exported variables in the Inspector
  4. Copy the values using the Copy Properties menu option
  5. Paste the properties in the second node and notice that the values in the Inspector don't change
  6. Select the first node again, then switch back to the second node. The values now have updated correctly

Minimal reproduction project

No response

@duianto
Copy link

duianto commented May 19, 2022

I just noticed this earlier today as well.

In both:

The Inspector properties don't auto update,
when pasting properties (from the Manage Object Properties button),
from one AnimationPlayers key to another.

Clicking on the key that received the pasted property, updates the properties.

In v3.5.rc1.official [e86d840],
It's possible to right click and copy an individual property,
and pasting does update the inspector properties automatically.

Reproduction steps

  • Create a new project
  • In the scene dock, click on 2d scene, to add a Node2D
  • Add a Control node
  • Duplicate it (it gets the name Control2)
  • Select the Node2D root node
  • Add a AnimationPlayer node
  • In the bottom Animation dock, click on the Animation (menu) button
  • Choose New
  • Press Enter or click OK to accept the default name: New Anim
  • Select the Control node
  • In the Inspector dock, click on Rect to unfold it's properties
  • Click on the key to the right of Position
  • On the Please Confirm... dialog, press Enter or click on Create
  • Select the Control2 node
  • In the Inspector dock, click on Rect to unfold it's properties
  • Click on the key to the right of Position
  • On the Please Confirm... dialog, press Enter or click on Create
  • In the Animation dock, click on the key for Control, rect_position
  • In the Inspector dock, change the Value x to 1
  • In the Inspector dock, click on the top right button Manage object properties
  • Choose Copy Properties
  • In the Animation dock, click on the key for Control2, rect_position
  • In the Inspector dock, click on the top right button Manage object properties
  • Choose Paste Properties

Observed

Nothing changed in the Inspector dock, properties.

  • In the Animation dock, click on the key for Control2, rect_position

Now the Inspector dock, properties updated.

Expected

The Inspector dock, properties should have update automatically when the properties were pasted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants