From 0948a7045ed423504dc12adf366c96554f12184f Mon Sep 17 00:00:00 2001 From: Simon Wendsche Date: Sun, 26 Jan 2020 14:29:36 +0100 Subject: [PATCH] remove some debug prints --- export/caches/object_cache.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/export/caches/object_cache.py b/export/caches/object_cache.py index b09619c4..e2dfd515 100644 --- a/export/caches/object_cache.py +++ b/export/caches/object_cache.py @@ -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): @@ -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: @@ -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()