Parcourir la source

fix: fx offset bug if lower 0.5

micha il y a 3 ans
Parent
commit
e2e1849e90
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      Editor3.py

+ 4 - 2
Editor3.py

@@ -61,7 +61,7 @@ from collections import OrderedDict
 
 show_name = "GloryCamp2021"
 show_name = "GloryCamp2021"
-##show_name = "Dimmer"
+#show_name = "Dimmer"
 
 
 CUES    = OrderedDict()
@@ -351,7 +351,9 @@ class Xevent():
                                     data["ATTRIBUT"][attr]["FX"] = fx #"sinus:40:100:10"
                                 
                                     cmd+=update_dmx(attr,data,pfx="fx",value=fx)#,flash=FLASH)
-                            offset += fx_prm["OFFSET"]
+                            if fx_prm["OFFSET"] > 0.5:  
+                                offset += fx_prm["OFFSET"] # add offset on next fixture
+                            #print("offset",offset)
                         if cmd and not BLIND:
                             client.send(cmd)