Skip to content

Commit

Permalink
remove some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed Jan 26, 2020
1 parent d546000 commit 0948a70
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions export/caches/object_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,19 +302,13 @@ def diff(self, depsgraph):
return depsgraph.id_type_updated("OBJECT") and not only_scene

def update(self, exporter, depsgraph, luxcore_scene, scene_props, is_viewport_render=True):
print("object cache update")

redefine_objs_with_these_mesh_keys = []
# Always instance in viewport so we can move objects around
use_instancing = True

# Geometry updates (mesh edit, modifier edit etc.)
if depsgraph.id_type_updated("OBJECT"):
print("exported meshes:", self.exported_meshes.keys())

for dg_update in depsgraph.updates:
print(f"update id: {dg_update.id}, geom: {dg_update.is_updated_geometry}, trans: {dg_update.is_updated_transform}")

if dg_update.is_updated_geometry and isinstance(dg_update.id, bpy.types.Object):
obj = dg_update.id
if not self._is_obj_visible(obj):
Expand All @@ -323,7 +317,6 @@ def update(self, exporter, depsgraph, luxcore_scene, scene_props, is_viewport_re
obj_key = utils.make_key(obj)

if obj.type in MESH_OBJECTS:
print(f"Geometry of obj {obj.name} was updated")
mesh_key = self._get_mesh_key(obj, use_instancing)

# if mesh_key not in self.exported_meshes:
Expand Down Expand Up @@ -386,4 +379,4 @@ def update(self, exporter, depsgraph, luxcore_scene, scene_props, is_viewport_re
self._convert_obj(exporter, dg_obj_instance, obj, depsgraph,
luxcore_scene, scene_props, is_viewport_render)

self._debug_info()
#self._debug_info()

0 comments on commit 0948a70

Please sign in to comment.