Skip to content

Commit

Permalink
blender: Simplify sync_scene() a tiny bit
Browse files Browse the repository at this point in the history
Just some observations I made while looking at docs
  • Loading branch information
vkoskiv committed Jan 10, 2024
1 parent ef778a3 commit 0d08d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/blender_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,13 @@ def __del__(self):

def sync_scene(self, depsgraph):
b_scene = depsgraph.scene
objects = b_scene.objects
objects = depsgraph.objects
# Sync cameras
for idx, ob_main in enumerate(objects):
if ob_main.type != 'CAMERA':
continue
bl_cam_eval = ob_main.evaluated_get(depsgraph)
bl_cam = bl_cam_eval.data

bl_cam = ob_main.data

cr_cam = None
if bl_cam.name in self.cr_scene.cameras:
Expand Down

0 comments on commit 0d08d1c

Please sign in to comment.