Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_physics_common.py
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if data: | ||||
| row.operator(removeop, text=name, text_ctxt=i18n_contexts.default, icon='X') | row.operator(removeop, text=name, text_ctxt=i18n_contexts.default, icon='X') | ||||
| else: | else: | ||||
| row.operator(addop, text=name, text_ctxt=i18n_contexts.default, icon=typeicon) | row.operator(addop, text=name, text_ctxt=i18n_contexts.default, icon=typeicon) | ||||
| class PHYSICS_PT_add(PhysicButtonsPanel, Panel): | class PHYSICS_PT_add(PhysicButtonsPanel, Panel): | ||||
| bl_label = "" | bl_label = "" | ||||
| bl_options = {'HIDE_HEADER'} | bl_options = {'HIDE_HEADER'} | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH','BLENDER_WORKBENCH_NEXT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True) | flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True) | ||||
| obj = context.object | obj = context.object | ||||
| ▲ Show 20 Lines • Show All 298 Lines • Show Last 20 Lines | |||||