3dPrinting :
- segnalazione errori durante lo slicing - gestite visualizzazioni anche nel caso di slices con errori.
This commit is contained in:
@@ -71,7 +71,7 @@ function RunViewManager.Exec()
|
||||
local nSelLayerId = EgtGetLastSelectedObj()
|
||||
while nSelLayerId do
|
||||
local sSelLayerName = EgtGetName( nSelLayerId)
|
||||
if sSelLayerName and sSelLayerName:sub(1, 5) == SLICE_LAYER then
|
||||
if sSelLayerName and ( sSelLayerName:sub(1, 5) == SLICE_LAYER or sSelLayerName:sub(3, 7) == SLICE_LAYER) then
|
||||
bFound = true
|
||||
break
|
||||
end
|
||||
@@ -93,11 +93,11 @@ function RunViewManager.Exec()
|
||||
|
||||
-- ciclo sui pezzi
|
||||
local nPartIndex = 1
|
||||
local nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. nPartIndex)
|
||||
local nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. nPartIndex)
|
||||
while nPartId do
|
||||
-- ciclo sui layer per dis/attivare il resto
|
||||
local nLayerIndex = 1
|
||||
local nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex)
|
||||
local nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex) or EgtGetFirstNameInGroup( nPartId, "__" .. SLICE_LAYER .. nLayerIndex)
|
||||
while nLayerId do
|
||||
if nVisibilityMode == LAYER_VIEW_TYPE.ALL then
|
||||
EgtSetStatus( nLayerId, GDB_ST.ON)
|
||||
@@ -132,7 +132,7 @@ function RunViewManager.Exec()
|
||||
nCrvId = EgtGetNext( nCrvId)
|
||||
end
|
||||
nLayerIndex = nLayerIndex + 1
|
||||
nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex)
|
||||
nLayerId = EgtGetFirstNameInGroup( nPartId, SLICE_LAYER .. nLayerIndex) or EgtGetFirstNameInGroup( nPartId, "__" .. SLICE_LAYER .. nLayerIndex)
|
||||
end
|
||||
nPartIndex = nPartIndex + 1
|
||||
nPartId = EgtGetFirstNameInGroup( GDB_ID.ROOT, PART .. nPartIndex)
|
||||
|
||||
Reference in New Issue
Block a user