@ -292,7 +292,7 @@ class SessionApply(bpy.types.Operator):
|
|||||||
bl_description = "Apply selected block into blender"
|
bl_description = "Apply selected block into blender"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
target = bpy.props.StringProperty()
|
target: bpy.props.StringProperty()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
@ -312,7 +312,7 @@ class SessionCommit(bpy.types.Operator):
|
|||||||
bl_description = "commit and push selected datablock to server"
|
bl_description = "commit and push selected datablock to server"
|
||||||
bl_options = {"REGISTER"}
|
bl_options = {"REGISTER"}
|
||||||
|
|
||||||
target = bpy.props.StringProperty()
|
target: bpy.props.StringProperty()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
@ -129,7 +129,8 @@ class User():
|
|||||||
def update_presence(self, context):
|
def update_presence(self, context):
|
||||||
global renderer
|
global renderer
|
||||||
|
|
||||||
if renderer and self.enable_presence:
|
if 'renderer' in globals():
|
||||||
|
if self.enable_presence:
|
||||||
renderer.run()
|
renderer.run()
|
||||||
else:
|
else:
|
||||||
renderer.stop()
|
renderer.stop()
|
||||||
|
Reference in New Issue
Block a user