fix 2 bugs

- fix viewer throw decorate error when a graph don't contain any bb
- fix export data error when Virtools face unrecongized data type
This commit is contained in:
2020-04-13 23:59:51 +08:00
parent ac033a3ae3
commit 73b7d96795
3 changed files with 11 additions and 4 deletions

View File

@ -145,6 +145,7 @@ def buildBlock(exDb, deDb, target, currentGraphBlockCell):
else:
layer_height[curLayer] = max(layer_height.get(curLayer, 0), bbResult[i].height)
layer_height[arrangedLayer] = layer_height.get(arrangedLayer, 0) # make sure misc bb height exist
layer_height[2] = layer_height.get(2, 0) # make sure at least have a bb layer (when there are no bb in a map)
# calc bb Y
baseY = dcv.GRAPH_CONTENTOFFSET_Y

View File

@ -4,7 +4,7 @@ import os
import sys
# debug use
os.remove('decorate.db')
# os.remove('decorate.db')
print('Super Script View')
if not os.path.isfile("decorate.db"):