From f2c273909bbc0149f0a1eefbb41ccdc4696a8862 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sun, 10 Dec 2017 22:07:27 -0800 Subject: [PATCH] Re-layout props on the texture panel --- korman/ui/ui_texture.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/korman/ui/ui_texture.py b/korman/ui/ui_texture.py index ba706de..1deef67 100644 --- a/korman/ui/ui_texture.py +++ b/korman/ui/ui_texture.py @@ -67,23 +67,12 @@ class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel): layout = self.layout split = layout.split() - col = split.column() - col.label("Animation:") - col.active = self._has_animation_data(context) and not slot.use_stencil - col.prop(layer_props, "anim_auto_start") - col.prop(layer_props, "anim_loop") - col.separator() - col.label("SDL Animation:") - col.prop(layer_props, "anim_sdl_var", text="") - col = split.column() col.label("Miscellaneous:") col.active = not slot.use_stencil col.prop(layer_props, "opacity", text="Opacity") - col.separator() - col = col.column() - col.enabled = True + col = split.column() col.label("Z Depth:") col.prop(layer_props, "alpha_halo") col.prop(layer_props, "skip_depth_write") @@ -104,6 +93,18 @@ class PlasmaLayerPanel(TextureButtonsPanel, bpy.types.Panel): col.prop(layer_props, "detail_opacity_start") col.prop(layer_props, "detail_opacity_stop") + split = layout.split() + col = split.column() + col.label("Animation:") + col.active = self._has_animation_data(context) and not slot.use_stencil + col.prop(layer_props, "anim_auto_start") + col.prop(layer_props, "anim_loop") + col = split.column() + col.label("") + col.label("SDL Animation:") + col.active = self._has_animation_data(context) and not slot.use_stencil + col.prop(layer_props, "anim_sdl_var", text="") + def _has_animation_data(self, context): tex = getattr(context, "texture", None) if tex is not None: