Fix [#22120] Physics modifiers can't be removed
This commit is contained in:
@@ -62,7 +62,6 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel):
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
split.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if md:
|
||||
# remove modifier + settings
|
||||
@@ -78,8 +77,6 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel):
|
||||
if wide_ui:
|
||||
split.column()
|
||||
|
||||
split.operator_context = 'INVOKE_DEFAULT'
|
||||
|
||||
if md:
|
||||
cloth = md.settings
|
||||
|
||||
|
||||
@@ -185,7 +185,6 @@ class PHYSICS_PT_collision(PhysicButtonsPanel):
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
split.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if md:
|
||||
# remove modifier + settings
|
||||
|
||||
@@ -43,7 +43,6 @@ class PHYSICS_PT_fluid(PhysicButtonsPanel):
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split(percentage=0.5)
|
||||
split.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if md:
|
||||
# remove modifier + settings
|
||||
|
||||
@@ -48,7 +48,6 @@ class PHYSICS_PT_smoke(PhysicButtonsPanel):
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
split.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if md:
|
||||
# remove modifier + settings
|
||||
|
||||
@@ -54,7 +54,6 @@ class PHYSICS_PT_softbody(PhysicButtonsPanel):
|
||||
wide_ui = context.region.width > narrowui
|
||||
|
||||
split = layout.split()
|
||||
split.operator_context = 'EXEC_DEFAULT'
|
||||
|
||||
if md:
|
||||
# remove modifier + settings
|
||||
|
||||
Reference in New Issue
Block a user