code render scene comments cleanup

This commit is contained in:
pullusb
2024-03-28 11:51:57 +01:00
parent 4618982a37
commit abc93bc1f9
6 changed files with 4 additions and 103 deletions
-9
View File
@@ -262,12 +262,6 @@ def get_render_scene():
## With data
render_scn = bpy.data.scenes.new('Render')
## With ops (goes directly into scene)
# bpy.ops.scene.new(type='NEW')
# render_scn = bpy.context.scene
# print('render_scn: ', render_scn)
# render_scn.name = 'Render'
## copy original settings over to new scene
# copy_settings(current, render_scn) # BAD
for attr in ['frame_start', 'frame_end', 'frame_current', 'camera', 'world']:
@@ -1263,9 +1257,6 @@ def export_crop_to_json() -> dict:
coord_dic = {}
for scn in bpy.data.scenes:
# if scn.name in {'Scene', 'Render'}:
# if scn.name == 'Scene':
# continue
if scn.render.use_border and scn.render.use_crop_to_border: # Only usefull if cropped
scn_border = get_crop_pixel_coord(scn)
## Only scn name (meaning only one name to refer if multiple GP)