mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 22:36:52 +00:00
Blender 2.66 looks nice...
This commit is contained in:
@ -20,7 +20,7 @@ from . import operators, properties, ui
|
|||||||
bl_info = {
|
bl_info = {
|
||||||
"name": "Korman",
|
"name": "Korman",
|
||||||
"author": "Guild of Writers",
|
"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",
|
"location": "File > Import-Export",
|
||||||
"description": "Exporter for Cyan Worlds' Plasma Engine",
|
"description": "Exporter for Cyan Worlds' Plasma Engine",
|
||||||
"warning": "alpha",
|
"warning": "alpha",
|
||||||
|
@ -39,9 +39,3 @@ def _new_poll(cls, context):
|
|||||||
def _swap_poll(cls):
|
def _swap_poll(cls):
|
||||||
cls._old_poll = cls.poll
|
cls._old_poll = cls.poll
|
||||||
cls.poll = _new_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
|
|
||||||
|
@ -34,7 +34,8 @@ class PlasmaAgePanel(AgeButtonsPanel, bpy.types.Panel):
|
|||||||
|
|
||||||
# We want a list of pages and an editor below that
|
# We want a list of pages and an editor below that
|
||||||
row = layout.row()
|
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 = row.column(align=True)
|
||||||
col.operator("world.plasma_page_add", icon="ZOOMIN", text="")
|
col.operator("world.plasma_page_add", icon="ZOOMIN", text="")
|
||||||
col.operator("world.plasma_page_remove", icon="ZOOMOUT", text="")
|
col.operator("world.plasma_page_remove", icon="ZOOMOUT", text="")
|
||||||
|
Reference in New Issue
Block a user