Merge branch 'develop' into 29-differential-revision

This commit is contained in:
Swann
2020-04-09 21:45:44 +02:00
5 changed files with 29 additions and 4 deletions

View File

@ -36,3 +36,17 @@ All notable changes to this project will be documented in this file.
- Use a basic BFS approach for replication graph pre-load. - Use a basic BFS approach for replication graph pre-load.
- Serialization is now based on marshal (2x performance improvements). - Serialization is now based on marshal (2x performance improvements).
- Let pip chose python dependencies install path. - Let pip chose python dependencies install path.
## [0.0.3] - Upcoming
### Added
- Auto updater support
- Performances improvements on Meshes, Gpencils, Actions
- Multi-scene workflow support
- Render setting synchronisation
- Kick command
### Changed
- Config is now stored in blender user preference

View File

@ -130,7 +130,9 @@ class SessionStartOperator(bpy.types.Operator):
id=settings.username, id=settings.username,
address=settings.ip, address=settings.ip,
port=settings.port, port=settings.port,
ipc_port=settings.ipc_port) ipc_port=settings.ipc_port,
timeout=settings.connection_timeout
)
except Exception as e: except Exception as e:
self.report({'ERROR'}, repr(e)) self.report({'ERROR'}, repr(e))
logger.error(f"Error: {e}") logger.error(f"Error: {e}")
@ -146,7 +148,8 @@ class SessionStartOperator(bpy.types.Operator):
id=settings.username, id=settings.username,
address=settings.ip, address=settings.ip,
port=settings.port, port=settings.port,
ipc_port=settings.ipc_port ipc_port=settings.ipc_port,
timeout=settings.connection_timeout
) )
except Exception as e: except Exception as e:
self.report({'ERROR'}, repr(e)) self.report({'ERROR'}, repr(e))

View File

@ -102,6 +102,11 @@ class SessionPrefs(bpy.types.AddonPreferences):
name="cache directory", name="cache directory",
subtype="DIR_PATH", subtype="DIR_PATH",
default=environment.DEFAULT_CACHE_DIR) default=environment.DEFAULT_CACHE_DIR)
connection_timeout: bpy.props.IntProperty(
name='connection timeout',
description='connection timeout before disconnection',
default=1000
)
# for UI # for UI
category: bpy.props.EnumProperty( category: bpy.props.EnumProperty(
name="Category", name="Category",

View File

@ -179,6 +179,9 @@ class SESSION_PT_settings_network(bpy.types.Panel):
row = box.row() row = box.row()
row.label(text="IPC Port:") row.label(text="IPC Port:")
row.prop(settings, "ipc_port", text="") row.prop(settings, "ipc_port", text="")
row = box.row()
row.label(text="Timeout (ms):")
row.prop(settings, "connection_timeout", text="")
if runtime_settings.session_mode == 'HOST': if runtime_settings.session_mode == 'HOST':
row = box.row() row = box.row()