From 9468c406fb554e32ff47b62bfef356b3908ec651 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Thu, 5 Mar 2020 12:35:13 +1100
Subject: [PATCH] Fix incorrect identity comparisons

---
 io_export_after_effects.py | 2 +-
 np_station/np_roto_move.py | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

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)
-- 
GitLab