GDScript: Fix assignment with operation for properties

This commit is contained in:
George Marques
2021-09-29 10:53:47 -03:00
parent c1f59139b4
commit 991f4d8527
3 changed files with 40 additions and 15 deletions

View File

@@ -0,0 +1,11 @@
#GDTEST_OK
var prop : int = 0:
get:
return prop
set(value):
prop = value % 7
func test():
for i in 7:
prop += 1
print(prop)

View File

@@ -0,0 +1,8 @@
GDTEST_OK
1
2
3
4
5
6
0