kopia lustrzana https://github.com/vilemduha/blendercam
commit
f846fb4243
|
|
@ -1041,7 +1041,7 @@ def renderSampleImage(o):
|
||||||
t = time.time()
|
t = time.time()
|
||||||
simple.progress('getting zbuffer')
|
simple.progress('getting zbuffer')
|
||||||
# print(o.zbuffer_image)
|
# print(o.zbuffer_image)
|
||||||
|
o.update_offsetimage_tag = True
|
||||||
if o.geometry_source == 'OBJECT' or o.geometry_source == 'COLLECTION':
|
if o.geometry_source == 'OBJECT' or o.geometry_source == 'COLLECTION':
|
||||||
pixsize = o.optimisation.pixsize
|
pixsize = o.optimisation.pixsize
|
||||||
|
|
||||||
|
|
@ -1063,7 +1063,9 @@ def renderSampleImage(o):
|
||||||
if i.size[0] != resx or i.size[1] != resy:
|
if i.size[0] != resx or i.size[1] != resy:
|
||||||
print("Z buffer size changed:",i.size,resx,resy)
|
print("Z buffer size changed:",i.size,resx,resy)
|
||||||
o.update_zbufferimage_tag = True
|
o.update_zbufferimage_tag = True
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|
||||||
o.update_zbufferimage_tag = True
|
o.update_zbufferimage_tag = True
|
||||||
if o.update_zbufferimage_tag:
|
if o.update_zbufferimage_tag:
|
||||||
s = bpy.context.scene
|
s = bpy.context.scene
|
||||||
|
|
|
||||||
|
|
@ -166,10 +166,10 @@ class CalculatePath(bpy.types.Operator):
|
||||||
if o.strategy == "CARVE":
|
if o.strategy == "CARVE":
|
||||||
curvob = bpy.data.objects[o.curve_object]
|
curvob = bpy.data.objects[o.curve_object]
|
||||||
curvob.hide_set(False)
|
curvob.hide_set(False)
|
||||||
if o.strategy == 'WATERLINE':
|
'''if o.strategy == 'WATERLINE':
|
||||||
ob = bpy.data.objects[o.object_name]
|
ob = bpy.data.objects[o.object_name]
|
||||||
ob.select_set(True)
|
ob.select_set(True)
|
||||||
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)
|
bpy.ops.object.transform_apply(location=True, rotation=True, scale=True)'''
|
||||||
print(bpy.context.mode)
|
print(bpy.context.mode)
|
||||||
if bpy.context.mode != 'OBJECT':
|
if bpy.context.mode != 'OBJECT':
|
||||||
bpy.ops.object.mode_set(mode='OBJECT') # force object mode
|
bpy.ops.object.mode_set(mode='OBJECT') # force object mode
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue