Fixed incompatibility with Python 3.6 (used in Blender 2.79b)
This commit is contained in:
parent
6fefe4ffd8
commit
3f2479067c
@ -934,7 +934,7 @@ class ATTRACT_OT_project_open_in_browser(Operator):
|
|||||||
import pprint
|
import pprint
|
||||||
log.debug('found project: %s', pprint.pformat(project.to_dict()))
|
log.debug('found project: %s', pprint.pformat(project.to_dict()))
|
||||||
|
|
||||||
url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, f'attract/{project.url}')
|
url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, 'attract/' + project.url)
|
||||||
webbrowser.open_new_tab(url)
|
webbrowser.open_new_tab(url)
|
||||||
self.report({'INFO'}, 'Opened a browser at %s' % url)
|
self.report({'INFO'}, 'Opened a browser at %s' % url)
|
||||||
|
|
||||||
|
@ -179,8 +179,8 @@ def draw_callback_px(line_drawer: AttractLineDrawer):
|
|||||||
|
|
||||||
strips = shown_strips(context)
|
strips = shown_strips(context)
|
||||||
|
|
||||||
coords: typing.List[Float2] = []
|
coords = [] # type: typing.List[Float2]
|
||||||
colors: typing.List[Float4] = []
|
colors = [] # type: typing.List[Float4]
|
||||||
|
|
||||||
# Collect all the lines (vertex coords + vertex colours) to draw.
|
# Collect all the lines (vertex coords + vertex colours) to draw.
|
||||||
for strip in strips:
|
for strip in strips:
|
||||||
|
Reference in New Issue
Block a user