Skip to content

Commit 73c71f6

Browse files
committed
Fixed issue with inverted normals on elements with negative scaling
1 parent 01e70b2 commit 73c71f6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

kk_bullet_constraints_builder.zip

-4 Bytes
Binary file not shown.

kk_bullet_constraints_builder/builder_fm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def build_fm(use_handler=0):
272272
objParent.select = 1
273273
bpy.context.scene.objects.active = objParent
274274
print("Parenting", ob.name, "to", objParent.name, "...")
275-
try: bpy.ops.object.parent_set(type='OBJECT', keep_transform=True)
275+
try: bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)
276276
except:
277277
print("Error: Parenting failed. This can happen when not only the structure")
278278
print("was selected but also the ground.")

kk_bullet_constraints_builder/builder_prep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def makeParentsForTooSmallElementsReal(objs, connectsPairParent):
654654
objParent.select = 1
655655
objChild.select = 1
656656
bpy.context.scene.objects.active = objParent # Parent
657-
bpy.ops.object.parent_set(type='OBJECT', keep_transform=True)
657+
bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)
658658
objParent.select = 0
659659
objChild.select = 0
660660

@@ -1861,7 +1861,7 @@ def createParentsIfRequired(scene, objs, objsEGrp, childObjs):
18611861
parentObj.select = 1
18621862
childObj.select = 1
18631863
bpy.context.scene.objects.active = parentObj
1864-
bpy.ops.object.parent_set(type='OBJECT', keep_transform=True)
1864+
bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)
18651865
parentObj.select = 0
18661866
childObj.select = 0
18671867
if len(childObjsNew) > 0: print()

kk_bullet_constraints_builder/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ def tool_groundMotion(scene):
13711371

13721372
### Make object parent for selected objects
13731373
bpy.context.scene.objects.active = objGnd # Parent
1374-
bpy.ops.object.parent_set(type='OBJECT', keep_transform=True)
1374+
bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)
13751375

13761376
# Enable animated flag for all passive rigid bodies so that Bullet takes their motion into account
13771377
for obj in objs: obj.rigid_body.kinematic = True
@@ -1404,7 +1404,7 @@ def tool_groundMotion(scene):
14041404
### Make object parent for selected objects
14051405
objGnd.select = 1 # Child
14061406
bpy.context.scene.objects.active = objMot # Parent
1407-
bpy.ops.object.parent_set(type='OBJECT', keep_transform=True)
1407+
bpy.ops.object.parent_set(type='OBJECT', keep_transform=False)
14081408
objGnd.select = 0
14091409

14101410
# Use given motion object for creating artificial earthquake motion from now on

0 commit comments

Comments
 (0)