mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
Bugfix : Maj du level dans la documentation, Crash lors de l'avance rapide (10)
This commit is contained in:
parent
cfab8dcef6
commit
d264df294a
1
rp.py
1
rp.py
@ -108,6 +108,7 @@ def points_maj (cont):
|
|||||||
# Level
|
# Level
|
||||||
if scene.objects['Points-Level-text']['Text']!=str(scene.objects['Points']['level']):
|
if scene.objects['Points-Level-text']['Text']!=str(scene.objects['Points']['level']):
|
||||||
scene.objects['Points-Level-text']['Text']=str(scene.objects['Points']['level'])
|
scene.objects['Points-Level-text']['Text']=str(scene.objects['Points']['level'])
|
||||||
|
scene.objects['Book_level']['Text'] = "Niveau actuel : "+str(scene.objects['Points']['level'])
|
||||||
|
|
||||||
# Maj du fichier de config (sound : data/mission/level -> [1][1].text) lors d'une augmentation de niveau
|
# Maj du fichier de config (sound : data/mission/level -> [1][1].text) lors d'une augmentation de niveau
|
||||||
if scene.objects['Points']['level']>int(rp_config_tree[1][1].text):
|
if scene.objects['Points']['level']>int(rp_config_tree[1][1].text):
|
||||||
|
@ -235,7 +235,7 @@ def rp_avancer ():
|
|||||||
# rp_tempo (0.1*step)
|
# rp_tempo (0.1*step)
|
||||||
|
|
||||||
# Animation
|
# Animation
|
||||||
if scene.objects['Commands']['speed'] < 10:
|
if scene.objects['Commands']['speed'] < 10 or scene.objects['Points']['step'] <=2 :
|
||||||
start = 1
|
start = 1
|
||||||
end = 100
|
end = 100
|
||||||
layer = 0
|
layer = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user