GDScript: Fix assignment with operation for properties
This commit is contained in:
parent
c1f59139b4
commit
991f4d8527
3 changed files with 40 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
GDTEST_OK
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
5
|
||||
6
|
||||
0
|
||||
Loading…
Add table
Add a link
Reference in a new issue