fix: non existing user configuration
feat: update readme
This commit is contained in:
parent
c78b0fb83c
commit
07ae67edaf
@ -20,8 +20,6 @@ Settings are under: `View3D -> Sidebar -> Multiuser`
|
||||
|
||||
#### 1. User
|
||||
|
||||
_All user-related infos fields._
|
||||
|
||||
![settings](medias/user.png)
|
||||
|
||||
- **name**: username.
|
||||
@ -29,8 +27,6 @@ _All user-related infos fields._
|
||||
|
||||
#### 2. Network
|
||||
|
||||
_Session-related managment tools_
|
||||
|
||||
:warning: If you host a session over internet, special network configuration is needed :warning:
|
||||
|
||||
| Host | Join |
|
||||
|
@ -216,6 +216,9 @@ class SessionProps(bpy.types.PropertyGroup):
|
||||
def save(self,context):
|
||||
config = environment.load_config()
|
||||
|
||||
if "supported_types" not in config:
|
||||
config = generate_supported_types()
|
||||
|
||||
config["username"] = self.username
|
||||
config["ip"] = self.ip
|
||||
config["port"] = self.port
|
||||
@ -223,7 +226,7 @@ class SessionProps(bpy.types.PropertyGroup):
|
||||
config["enable_presence"] = self.enable_presence
|
||||
config["client_color"] = [self.client_color.r,self.client_color.g,self.client_color.b]
|
||||
|
||||
|
||||
|
||||
for bloc in self.supported_datablock:
|
||||
config_block = config["supported_types"][bloc.type_name]
|
||||
config_block['bl_delay_refresh'] = bloc.bl_delay_refresh
|
||||
|
Loading…
Reference in New Issue
Block a user