Compare commits

...

17 Commits

Author SHA1 Message Date
d93c227521 feat: initial material input support 2023-02-20 14:09:35 +01:00
4c42a5be92 fix: freeze deepdiff version in replication 2022-08-18 21:40:07 +02:00
15d66579c6 fix: deepdiff dependency error, freezing it to 5.7.0. 2022-08-07 14:36:36 +02:00
4128a47b88 fix: put back numpy types 2022-07-31 14:57:32 +02:00
689a565c75 fix: bump version 2022-07-07 14:34:33 +02:00
c5f1bf1176 fix: cross-platform serialization errors 2022-07-07 14:29:32 +02:00
5311e55208 fix: doc version number 2022-06-12 21:16:11 +02:00
4cb64e5e77 doc: update changelog and version 2022-06-12 21:10:38 +02:00
ff67b581b1 Merge branch '256-numpy-mesh-serialization-error' into 'develop'
Resolve "Numpy mesh serialization error"

See merge request slumber/multi-user!175
2022-06-12 19:04:56 +00:00
f7bec3fc08 fix: try to use other numpy types to store data collection 2022-06-11 14:00:36 +02:00
629f2e1cdb feat: update changelog 2022-03-11 18:52:30 +01:00
b8fed806ed feat: update version 2022-03-11 18:38:38 +01:00
8190846b59 fix: blender 3.1 numpy loading compatibility 2022-03-11 18:38:09 +01:00
c228b6ad7f refactpr: snapshot logs 2022-03-09 11:19:09 +01:00
48651ce890 fix: uuid error when joining a server 2022-03-09 10:42:44 +01:00
26847cf459 fix: server crashing during snapshots 2022-03-08 18:06:54 +01:00
bfa6991c00 fix: server docker file 2022-03-02 14:26:01 +01:00
8 changed files with 36 additions and 11 deletions

View File

@ -253,4 +253,21 @@ All notable changes to this project will be documented in this file.
### Fixed
- Objects not selectable after user leaves session
- Geometry nodes attribute toogle doesn't sync
- Geometry nodes attribute toogle doesn't sync
## [0.5.3] - 2022-03-11
### Changed
- Snapshots logs
### Fixed
- Server crashing during snapshots
- Blender 3.1 numpy loading error during early connection process
- Server docker arguments
## [0.5.5] - 2022-06-12
### Fixed
- Numpy mesh serialization error

View File

@ -16,12 +16,12 @@ import sys
# -- Project information -----------------------------------------------------
project = 'Multi-User 0.5.0 Documentation'
project = 'Multi-User 0.5.x Documentation'
copyright = '2020, Swann Martinez'
author = 'Swann Martinez, Poochy, Fabian'
# The full version, including alpha/beta/rc tags
version_release = '0.5.1-develop'
version_release = '0.5.5'
# -- General configuration ---------------------------------------------------

View File

@ -19,7 +19,7 @@
bl_info = {
"name": "Multi-User",
"author": "Swann Martinez",
"version": (0, 5, 2),
"version": (0, 5, 7),
"description": "Enable real-time collaborative workflow inside blender",
"blender": (2, 82, 0),
"location": "3D View > Sidebar > Multi-User tab",

View File

@ -64,7 +64,7 @@ def load_node(node_data: dict, node_tree: bpy.types.ShaderNodeTree):
if idx < len(inputs_data) and hasattr(inpt, "default_value"):
loaded_input = inputs_data[idx]
try:
if inpt.type in ['OBJECT', 'COLLECTION']:
if inpt.type in ['OBJECT', 'COLLECTION', 'MATERIAL']:
inpt.default_value = get_datablock_from_uuid(loaded_input, None)
else:
inpt.default_value = loaded_input
@ -80,7 +80,7 @@ def load_node(node_data: dict, node_tree: bpy.types.ShaderNodeTree):
if idx < len(outputs_data) and hasattr(output, "default_value"):
loaded_output = outputs_data[idx]
try:
if output.type in ['OBJECT', 'COLLECTION']:
if output.type in ['OBJECT', 'COLLECTION', 'MATERIAL']:
output.default_value = get_datablock_from_uuid(loaded_output, None)
else:
output.default_value = loaded_output
@ -351,6 +351,11 @@ def get_node_tree_dependencies(node_tree: bpy.types.NodeTree) -> list:
def has_texture(node): return (
node.type in ['ATTRIBUTE_SAMPLE_TEXTURE','TEXTURE'] and node.texture)
def has_material(node): return (
node.type == 'MATERIAL' and node.inputs[2].default_value is not None
)
deps = []
for node in node_tree.nodes:
@ -360,7 +365,9 @@ def get_node_tree_dependencies(node_tree: bpy.types.NodeTree) -> list:
deps.append(node.node_tree)
elif has_texture(node):
deps.append(node.texture)
elif has_material(node):
print(node.inputs[2].default_value.name)
deps.append(node.inputs[2].default_value)
return deps

View File

@ -26,7 +26,8 @@ import numpy as np
BPY_TO_NUMPY_TYPES = {
'FLOAT': np.float32,
'INT': np.int32,
'BOOL': np.bool}
'BOOL': np.bool,
'BOOLEAN': np.bool}
PRIMITIVE_TYPES = ['FLOAT', 'INT', 'BOOLEAN']

View File

@ -31,7 +31,7 @@ DEFAULT_CACHE_DIR = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "cache")
REPLICATION_DEPENDENCIES = {
"zmq",
"deepdiff"
"deepdiff==5.7.0"
}
LIBS = os.path.join(os.path.dirname(os.path.abspath(__file__)), "libs")
REPLICATION = os.path.join(LIBS,"replication")

View File

@ -22,4 +22,4 @@ RUN pip install replication==$replication_version
# Run the server with parameters
ENTRYPOINT ["/bin/sh", "-c"]
CMD ["replication.serve -apwd ${password} -spwd '' -p ${port} -t ${timeout} -l ${log_level} -lf ${log_file}"]
CMD ["replication.server -apwd ${password} -spwd '' -p ${port} -t ${timeout} -l ${log_level} -lf ${log_file}"]