mirror of
https://forge.apps.education.fr/blender-edutech/lecteur-3d-cinematique.git
synced 2024-01-27 09:43:12 +01:00
Migration vers UPBGE 0.36
This commit is contained in:
parent
f0f63948ee
commit
917162b272
Binary file not shown.
11
cine.py
11
cine.py
@ -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.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user