refactor: remove old properties

This commit is contained in:
Swann Martinez
2019-12-30 11:13:48 +01:00
parent ea3c9d701b
commit 28ca489fc3
3 changed files with 2 additions and 18 deletions

View File

@ -109,25 +109,14 @@ class SessionProps(bpy.types.PropertyGroup):
description='Distant host port', description='Distant host port',
default=5555 default=5555
) )
add_property_depth: bpy.props.IntProperty(
name="add_property_depth",
default=1
)
outliner_filter: bpy.props.StringProperty(name="None")
is_admin: bpy.props.BoolProperty( is_admin: bpy.props.BoolProperty(
name="is_admin", name="is_admin",
default=False default=False
) )
init_scene: bpy.props.BoolProperty(
name="init_scene",
default=True
)
start_empty: bpy.props.BoolProperty( start_empty: bpy.props.BoolProperty(
name="start_empty", name="start_empty",
default=True default=True
) )
active_object: bpy.props.PointerProperty(
name="active_object", type=bpy.types.Object)
session_mode: bpy.props.EnumProperty( session_mode: bpy.props.EnumProperty(
name='session_mode', name='session_mode',
description='session mode', description='session mode',
@ -179,11 +168,6 @@ class SessionProps(bpy.types.PropertyGroup):
description='Show only owned datablocks', description='Show only owned datablocks',
default=True default=True
) )
use_select_right: bpy.props.BoolProperty(
name="Selection right",
description='Change right on selection',
default=True
)
def load(self): def load(self):
config = environment.load_config() config = environment.load_config()

View File

@ -122,7 +122,7 @@ class SessionStartOperator(bpy.types.Operator):
settings.user_uuid = client.add(usr, owner=settings.username) settings.user_uuid = client.add(usr, owner=settings.username)
client.commit(settings.user_uuid) client.commit(settings.user_uuid)
if settings.init_scene and self.host: if self.host:
for scene in bpy.data.scenes: for scene in bpy.data.scenes:
scene_uuid = client.add(scene) scene_uuid = client.add(scene)