Migration vers UPBGE 0.36

This commit is contained in:
Philippe Roy 2023-07-10 23:51:09 +02:00
parent f0f63948ee
commit 917162b272
6 changed files with 7 additions and 6 deletions

Binary file not shown.

11
cine.py
View File

@ -351,7 +351,8 @@ def circle (center, radius, color):
def manip_init():
# Configuration du moteur de rendu
eevee.use_eevee_smaa = True
# eevee.use_eevee_smaa = True # Option obsolète depuis la version UPBGE 0.36
eevee.use_taa_reprojection = True
# Fenêtres
scene.objects['About'].setVisible(False,True)
@ -699,12 +700,12 @@ def object_hl(cont):
if hitObject is not None and hitObject.visible:
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][hitObject.name][0])].setVisible(False,False)
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][hitObject.name][0])+'-Hl'].setVisible(True,False)
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][hitObject.name][0])+'-Ot2'].setVisible(True,False)
# scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][hitObject.name][0])+'-Ot2'].setVisible(True,False)
if cont.sensors['MO'].status == JUST_RELEASED:
for objet in scene.objects['Mecanism']['objects'] :
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][objet][0])].setVisible(True,False)
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][objet][0])+'-Hl'].setVisible(False,False)
scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][objet][0])+'-Ot2'].setVisible(False,False)
# scene.objects['Nomenclature-'+str(scene.objects['Mecanism']['objects_dict'][objet][0])+'-Ot2'].setVisible(False,False)
###############################################################################
# Nomenclature
@ -749,11 +750,11 @@ def nom_hl(cont):
if cont.sensors['MO'].status == JUST_ACTIVATED and scene.objects['Mecanism']['manip_mode']==0:
obj.setVisible(False,False)
scene.objects[name+'-Hl'].setVisible(True,False)
scene.objects[name+'-Ot2'].setVisible(True,False)
# scene.objects[name+'-Ot2'].setVisible(True,False)
if cont.sensors['MO'].status == JUST_RELEASED and scene.objects['Mecanism']['manip_mode']==0:
obj.setVisible(True,False)
scene.objects[name+'-Hl'].setVisible(False,False)
scene.objects[name+'-Ot2'].setVisible(False,False)
# scene.objects[name+'-Ot2'].setVisible(False,False)
###############################################################################
# Repères

Binary file not shown.