[Bf-blender-cvs] [698b155] asset-engine: Fix issue with uuid generation in Amber.

Bastien Montagne noreply at git.blender.org
Wed Apr 6 18:05:28 CEST 2016


Commit: 698b15538bf970c63f83f531e3400d3b628a5eaf
Author: Bastien Montagne
Date:   Wed Apr 6 18:05:02 2016 +0200
Branches: asset-engine
https://developer.blender.org/rB698b15538bf970c63f83f531e3400d3b628a5eaf

Fix issue with uuid generation in Amber.

===================================================================

M	release/scripts/startup/bl_operators/amber.py

===================================================================

diff --git a/release/scripts/startup/bl_operators/amber.py b/release/scripts/startup/bl_operators/amber.py
index 4e6e2d5..bef43f9 100644
--- a/release/scripts/startup/bl_operators/amber.py
+++ b/release/scripts/startup/bl_operators/amber.py
@@ -204,7 +204,7 @@ class AmberJobList(AmberJob):
                 self.nbr += 1
                 if is_dir:
                     # We only list dirs from real file system.
-                    uuid = uuid_unpack_bytes((path.encode()[:8] + b"|" + bytes([self.nbr])))
+                    uuid = uuid_unpack_bytes((path.encode()[:8] + b"|" + self.nbr.to_bytes(4, 'little')))
                     dirs.append((path, size, timestamp, uuid))
                 done.add(tsk)
         self.stat_tasks -= done




More information about the Bf-blender-cvs mailing list