Skip to content

Commit 75465f0

Browse files
committed
Fixed issue where supposedly unique objects were not unique and thus caused problems
1 parent f16f208 commit 75465f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kk_bullet_constraints_builder.zip

10 Bytes
Binary file not shown.

kk_bullet_constraints_builder/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,9 @@ def updateObjList(scene, objs, objsName=None, objsNew=None, objsRemName=None):
526526
if objTemp not in objs:
527527
if objTemp.type == 'MESH' and not objTemp.hide and objTemp.is_visible(scene):
528528
objs.append(objTemp)
529-
objsScnID = [id(ob) for ob in scene.objects]
529+
objsScnID = [ob.as_pointer() for ob in scene.objects]
530530
for idx in reversed(range(len(objs))):
531-
if id(objs[idx]) not in objsScnID:
531+
if objs[idx].as_pointer() not in objsScnID:
532532
del objs[idx]
533533

534534
########################################

0 commit comments

Comments
 (0)