Bugfix : MouseOver des missions perturbé

This commit is contained in:
Philippe Roy 2022-10-10 05:09:00 +02:00
parent 2398377909
commit e4ba1e2c12
4 changed files with 4 additions and 4 deletions

Binary file not shown.

4
rp.py
View File

@ -326,7 +326,6 @@ def terrain_grid ():
scene.objects['Grid-u']['anim'] = True
def terrain_grid_anim ():
print (scene.objects['Grid-u']['timer'])
bpy.data.materials["Grid"].node_tree.nodes["Shader de mélange"].inputs[0].default_value=scene.objects['Grid-u']['timer']
bpy.data.materials["Grid-Yellow"].node_tree.nodes["Shader de mélange"].inputs[0].default_value=scene.objects['Grid-u']['timer']
bpy.data.materials["Grid-Green"].node_tree.nodes["Shader de mélange"].inputs[0].default_value=scene.objects['Grid-u']['timer']
@ -996,6 +995,8 @@ def tablet_open ():
scene.active_camera = scene.objects["Camera-Hud"]
scene.objects['Camera'].setVisible(False,True)
scene.objects['Doc-cmd-colbox'].suspendPhysics (True)
# Ouvrir la tablette
rp_doc.open()
@ -1030,6 +1031,7 @@ def tablet_close ():
scene.objects['Stop-Hl'].setVisible(False,False)
scene.objects['Aim-cmd-Hl'].setVisible(False,False)
scene.objects['Doc-cmd-Hl'].setVisible(False,False)
scene.objects['Doc-cmd-colbox'].restorePhysics()
scene.objects['ResetView-Hl'].setVisible(False,False)
scene.objects['About-cmd-Hl'].setVisible(False,False)
scene.objects['Speed_up-Hl'].setVisible(False,False)

View File

@ -583,7 +583,6 @@ def python_link (cont):
name_fct = scene.objects['Doc_chap-python']['page_fct']
if name_fct !="":
i= cont.owner.name[15:-7]
print (i)
webbrowser.open(card_description[name_fct][2][int(i)][1])
##

View File

@ -158,7 +158,6 @@ def open_anim():
scene.objects['Store'].worldPosition = [xi, yi, zi]
scene.objects['Store'].worldScale = [scalei, scalei, scalei]
scene.objects['Store']['timer']+=1
# print ("Store : timer", scene.objects['Store']['timer'], xi, yi, zi, scalei)
if scene.objects['Store']['timer']== resol:
scene.objects['Store']['anim'] = False
@ -371,7 +370,7 @@ def rover_go_store():
x0 = obj.worldPosition.x
y0 = obj.worldPosition.y
z0 = obj.worldPosition.z
print ("Position actuelle :", x0, y0)
# print ("Position actuelle :", x0, y0)
# Pathfinder : zone 1
if x0<=-10 and (y0==2 or y0==3):