fix: non existing user configuration

feat:  update readme
This commit is contained in:
Swann Martinez 2019-09-30 18:41:04 +02:00
parent c78b0fb83c
commit 07ae67edaf
No known key found for this signature in database
GPG Key ID: 414CCAFD8DA720E1
2 changed files with 4 additions and 5 deletions

View File

@ -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 |

View File

@ -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