Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-10-24 11:12:34 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-24 13:04:04 +0300
commite288e392a8c3100cb60f6b7659323905e47c72b8 (patch)
tree18f760e31fcf597c080d691d62527ad7b3db2ee2 /release/scripts/startup/bl_ui/properties_physics_rigidbody.py
parentdc2524eaaeb121aa48c5b81de67d3ede8a319123 (diff)
Cleanup: line length in Python scripts
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_rigidbody.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_rigidbody.py18
1 files changed, 15 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
index a55bd89ca18..26fe215b17d 100644
--- a/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
+++ b/release/scripts/startup/bl_ui/properties_physics_rigidbody.py
@@ -109,7 +109,11 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
@classmethod
def poll(cls, context):
obj = context.object
- if obj.parent is not None and obj.parent.rigid_body is not None and not obj.parent.rigid_body.collision_shape == 'COMPOUND':
+ if (
+ (obj.parent is not None) and
+ (obj.parent.rigid_body is not None) and
+ (not obj.parent.rigid_body.collision_shape == 'COMPOUND')
+ ):
return False
return (obj and obj.rigid_body and (context.engine in cls.COMPAT_ENGINES))
@@ -124,7 +128,11 @@ class PHYSICS_PT_rigid_body_collisions(PHYSICS_PT_rigidbody_panel, Panel):
layout.prop(rbo, "collision_shape", text="Shape")
if rbo.collision_shape == 'COMPOUND':
- if parent is not None and parent.rigid_body is not None and parent.rigid_body.collision_shape == 'COMPOUND':
+ if (
+ (parent is not None) and
+ (parent.rigid_body is not None) and
+ (parent.rigid_body.collision_shape == 'COMPOUND')
+ ):
rigid_body_warning(layout, "Sub compound shapes are not allowed")
else:
found = False
@@ -179,7 +187,11 @@ class PHYSICS_PT_rigid_body_collisions_sensitivity(PHYSICS_PT_rigidbody_panel, P
@classmethod
def poll(cls, context):
obj = context.object
- if obj.parent is not None and obj.parent.rigid_body is not None and not obj.parent.rigid_body.collision_shape == 'COMPOUND':
+ if (
+ (obj.parent is not None) and
+ (obj.parent.rigid_body is not None) and
+ (not obj.parent.rigid_body.collision_shape == 'COMPOUND')
+ ):
return False
return (obj and obj.rigid_body and (context.engine in cls.COMPAT_ENGINES))