From a0e2d1504cdbf7b994a58016834d0e1e4355a41e Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 23 Feb 2013 21:40:29 -0500 Subject: [PATCH] Blender 2.66 looks nice... --- korman/__init__.py | 2 +- korman/render.py | 6 ------ korman/ui/ui_world.py | 3 ++- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/korman/__init__.py b/korman/__init__.py index b55ce32..50c563d 100644 --- a/korman/__init__.py +++ b/korman/__init__.py @@ -20,7 +20,7 @@ from . import operators, properties, ui bl_info = { "name": "Korman", "author": "Guild of Writers", - "blender": (2, 6, 3), # I can't be bothered to support old stuff + "blender": (2, 6, 6), # I can't be bothered to support old stuff "location": "File > Import-Export", "description": "Exporter for Cyan Worlds' Plasma Engine", "warning": "alpha", diff --git a/korman/render.py b/korman/render.py index bede84b..43b6613 100644 --- a/korman/render.py +++ b/korman/render.py @@ -39,9 +39,3 @@ def _new_poll(cls, context): def _swap_poll(cls): cls._old_poll = cls.poll cls.poll = _new_poll - -# Hmm... Physics panels don't respect the supported engine thing. -# Metaprogramming to the rescue! -from bl_ui import properties_physics_common -_swap_poll(properties_physics_common.PhysicButtonsPanel) -del properties_physics_common diff --git a/korman/ui/ui_world.py b/korman/ui/ui_world.py index 2f177e9..af4e9c8 100644 --- a/korman/ui/ui_world.py +++ b/korman/ui/ui_world.py @@ -34,7 +34,8 @@ class PlasmaAgePanel(AgeButtonsPanel, bpy.types.Panel): # We want a list of pages and an editor below that row = layout.row() - row.template_list(age, "pages", age, "active_page_index", rows=2) + row.template_list("UI_UL_list", "pages", age, "pages", age, + "active_page_index", rows=2) col = row.column(align=True) col.operator("world.plasma_page_add", icon="ZOOMIN", text="") col.operator("world.plasma_page_remove", icon="ZOOMOUT", text="")