Skip to content
Snippets Groups Projects
Commit 9468c406 authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix incorrect identity comparisons

parent 91d5c210
No related branches found
No related tags found
No related merge requests found
...@@ -260,7 +260,7 @@ def write_jsx_file(file, data, selection, include_animation, include_active_cam, ...@@ -260,7 +260,7 @@ def write_jsx_file(file, data, selection, include_animation, include_active_cam,
active_cam_name = '' active_cam_name = ''
if include_active_cam and data['active_cam_frames'] != []: if include_active_cam and data['active_cam_frames'] != []:
# check if more that one active cam exist (true if active cams set by markers) # 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 name_ae = convert_name(data['active_cam_frames'][0].name) # take name of the only active camera in scene
else: else:
name_ae = 'Active_Camera' name_ae = 'Active_Camera'
......
...@@ -794,7 +794,8 @@ def DRAW_Overlay(self, context): ...@@ -794,7 +794,8 @@ def DRAW_Overlay(self, context):
walpha = translate_graphic(walpha, centerloc) walpha = translate_graphic(walpha, centerloc)
wbeta_L = translate_graphic(wbeta_L, 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) np_print('rv3d', rv3d)
...@@ -874,7 +875,7 @@ def DRAW_Overlay(self, context): ...@@ -874,7 +875,7 @@ def DRAW_Overlay(self, context):
bgl.glEnd() bgl.glEnd()
if flag is not 'RUNROTEND': if flag != 'RUNROTEND':
# drawing of wbeta_D contours: # drawing of wbeta_D contours:
bgl.glColor4f(1.0, 1.0, 1.0, 0.6) bgl.glColor4f(1.0, 1.0, 1.0, 0.6)
bgl.glLineWidth(1) bgl.glLineWidth(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment