Merge pull request #128 from abosafia/master

Waterline area fix
pull/254/head
Alain Pelletier 2024-01-09 12:15:07 -04:00 zatwierdzone przez GitHub
commit f846fb4243
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1041,7 +1041,7 @@ def renderSampleImage(o):
t = time.time()
simple.progress('getting zbuffer')
# print(o.zbuffer_image)
o.update_offsetimage_tag = True
if o.geometry_source == 'OBJECT' or o.geometry_source == 'COLLECTION':
pixsize = o.optimisation.pixsize
@ -1063,7 +1063,9 @@ def renderSampleImage(o):
if i.size[0] != resx or i.size[1] != resy:
print("Z buffer size changed:",i.size,resx,resy)
o.update_zbufferimage_tag = True
except:
o.update_zbufferimage_tag = True
if o.update_zbufferimage_tag:
s = bpy.context.scene

Wyświetl plik

@ -166,10 +166,10 @@ class CalculatePath(bpy.types.Operator):
if o.strategy == "CARVE":
curvob = bpy.data.objects[o.curve_object]
curvob.hide_set(False)
if o.strategy == 'WATERLINE':
'''if o.strategy == 'WATERLINE':
ob = bpy.data.objects[o.object_name]
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)
if bpy.context.mode != 'OBJECT':
bpy.ops.object.mode_set(mode='OBJECT') # force object mode