godotengine / godotengine/godot

Enum does not update in resource on change it needs restart to update

Open
#100,202 0 comments 1 reaction 0 assignees View on GitHub
bug topic:editor topic:gdscript
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in:
4.4Dev-3
4.4Dev-4
4.4Dev-5
4.4Dev-6

### System information

Linux Manjaro, Nvidia Geforce GTX 850, CPU: intel i7

### Issue description

when in resource you place a enum as typed variable you may choose the enums that are written like:

```gdscript
enum example{
one,
two,
three,
}
```

all works well
but if you add "four" you won't see it in the resources
you need to restart the godot and wala there it is

so each time you add an enums or change names you need to restart the godot to take effect

### Steps to reproduce

1. create node with variable (array) that contains resources
2. create resource and attach it
3. add enum variable in resource
4. add enum variable
5. and try to set it in node at first step -> it's array (any one) -> it's enum variable

it's not there

6. restart godot

it's there.

### Minimal reproduction project (MRP)

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.