fix: initialisation warnings

close issue #20
This commit is contained in:
Swann Martinez
2019-10-28 14:31:03 +01:00
parent 98c65e80fe
commit 0abd81f9d1
2 changed files with 8 additions and 7 deletions

View File

@ -292,7 +292,7 @@ class SessionApply(bpy.types.Operator):
bl_description = "Apply selected block into blender"
bl_options = {"REGISTER"}
target = bpy.props.StringProperty()
target: bpy.props.StringProperty()
@classmethod
def poll(cls, context):
@ -312,7 +312,7 @@ class SessionCommit(bpy.types.Operator):
bl_description = "commit and push selected datablock to server"
bl_options = {"REGISTER"}
target = bpy.props.StringProperty()
target: bpy.props.StringProperty()
@classmethod
def poll(cls, context):

View File

@ -129,10 +129,11 @@ class User():
def update_presence(self, context):
global renderer
if renderer and self.enable_presence:
renderer.run()
else:
renderer.stop()
if 'renderer' in globals():
if self.enable_presence:
renderer.run()
else:
renderer.stop()
def update_overlay_settings(self, context):