[Bf-extensions-cvs] [9468c406] master: Fix incorrect identity comparisons

Campbell Barton noreply at git.blender.org
Thu Mar 5 02:35:36 CET 2020


Commit: 9468c406fb554e32ff47b62bfef356b3908ec651
Author: Campbell Barton
Date:   Thu Mar 5 12:35:13 2020 +1100
Branches: master
https://developer.blender.org/rBAC9468c406fb554e32ff47b62bfef356b3908ec651

Fix incorrect identity comparisons

===================================================================

M	io_export_after_effects.py
M	np_station/np_roto_move.py

===================================================================

diff --git a/io_export_after_effects.py b/io_export_after_effects.py
index 71bb5fc9..e5a26438 100644
--- a/io_export_after_effects.py
+++ b/io_export_after_effects.py
@@ -260,7 +260,7 @@ def write_jsx_file(file, data, selection, include_animation, include_active_cam,
     active_cam_name = ''
     if include_active_cam and data['active_cam_frames'] != []:
         # check if more that one active cam exist (true if active cams set by markers)
-        if len(data['active_cam_frames']) is 1:
+        if len(data['active_cam_frames']) == 1:
             name_ae = convert_name(data['active_cam_frames'][0].name)  # take name of the only active camera in scene
         else:
             name_ae = 'Active_Camera'
diff --git a/np_station/np_roto_move.py b/np_station/np_roto_move.py
index fdc84966..c1634454 100644
--- a/np_station/np_roto_move.py
+++ b/np_station/np_roto_move.py
@@ -794,7 +794,8 @@ def DRAW_Overlay(self, context):
 
     walpha = translate_graphic(walpha, centerloc)
     wbeta_L = translate_graphic(wbeta_L, centerloc)
-    if flag is not 'RUNROTEND': wbeta_D = translate_graphic(wbeta_D, centerloc)
+    if flag != 'RUNROTEND':
+        wbeta_D = translate_graphic(wbeta_D, centerloc)
 
 
     np_print('rv3d', rv3d)
@@ -874,7 +875,7 @@ def DRAW_Overlay(self, context):
         bgl.glEnd()
 
 
-    if flag is not 'RUNROTEND':
+    if flag != 'RUNROTEND':
         # drawing of wbeta_D contours:
         bgl.glColor4f(1.0, 1.0, 1.0, 0.6)
         bgl.glLineWidth(1)



More information about the Bf-extensions-cvs mailing list