[Durian-svn] [2957] report error on zombie objects
campbell
institute at blender.org
Thu May 6 10:50:21 CEST 2010
Revision: 2957
https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=2957
Author: campbell
Date: 2010-05-06 10:50:21 +0200 (Thu, 06 May 2010)
Log Message:
-----------
report error on zombie objects
Modified Paths:
--------------
pro/scripts/modules/finals_config.py
pro/scripts/utilities/findPathError.py
Modified: pro/scripts/modules/finals_config.py
===================================================================
--- pro/scripts/modules/finals_config.py 2010-05-06 08:50:09 UTC (rev 2956)
+++ pro/scripts/modules/finals_config.py 2010-05-06 08:50:21 UTC (rev 2957)
@@ -162,6 +162,9 @@
psys.cloth.settings.mass = 0.01 # was 0.01
psys.cloth.settings.internal_friction = 0.985
+
+ elif base_name.startswith("03.4f"):
+ sintal_preset_hair_run()
elif base_name.startswith("04.1a"):
sintal_preset_hair_run()
Modified: pro/scripts/utilities/findPathError.py
===================================================================
--- pro/scripts/utilities/findPathError.py 2010-05-06 08:50:09 UTC (rev 2956)
+++ pro/scripts/utilities/findPathError.py 2010-05-06 08:50:21 UTC (rev 2957)
@@ -185,9 +185,14 @@
except:
print("ERROR PATH:", 'ID:', id_data, "ID_TARGET:", id_tar, "DATA:", data_path, "(OBJECT DRIVER)")
-
+def report_zombie_objects():
+ for obj in bpy.data.objects:
+ if obj.library is None:
+ if not obj.scene_users and not obj.group_users:
+ print("ERROR ZOMBIE:", obj)
+
def relpath(path, start=None):
"""
Returns the path relative to the current blend file using the "//" prefix.
@@ -222,7 +227,7 @@
print("ABSOLUTE PATH:", filename, "NOW RELATIVE --> ", i.filename)
change = 1
- if 1:
+ else:
filename_abs = expandpath(i.filename)
# check for BAD rel paths
@@ -263,9 +268,10 @@
report_images()
report_modifiers()
report_drivers()
+ report_zombie_objects()
# optional, take care!
- change |= make_relative()
+ #change |= make_relative()
#change |= clear_images(rem_missing = True)
#change |= merge_duplicates()
More information about the Durian-svn
mailing list