Commit 9468c406 authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix incorrect identity comparisons

parent 91d5c210
......@@ -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'
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment