From fa2c7e30cbb9953310a145d7a79872c2d3ee7a2b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 6 Jun 2015 00:42:28 -0400 Subject: [PATCH] Reenable more default panels... - All render/baking stuff - Vertex Colors - UV Maps --- korman/render.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/korman/render.py b/korman/render.py index 207e0be..f52835a 100644 --- a/korman/render.py +++ b/korman/render.py @@ -31,11 +31,23 @@ properties_material.MATERIAL_PT_options.COMPAT_ENGINES.add("PLASMA_GAME") properties_material.MATERIAL_PT_preview.COMPAT_ENGINES.add("PLASMA_GAME") del properties_material +from bl_ui import properties_data_mesh +properties_data_mesh.DATA_PT_uv_texture.COMPAT_ENGINES.add("PLASMA_GAME") +properties_data_mesh.DATA_PT_vertex_colors.COMPAT_ENGINES.add("PLASMA_GAME") +del properties_data_mesh + +def _whitelist_all(mod): + for i in dir(mod): + attr = getattr(mod, i) + if hasattr(attr, "COMPAT_ENGINES"): + getattr(attr, "COMPAT_ENGINES").add("PLASMA_GAME") + +from bl_ui import properties_render +_whitelist_all(properties_render) +del properties_render + from bl_ui import properties_texture -for i in dir(properties_texture): - attr = getattr(properties_texture, i) - if hasattr(attr, "COMPAT_ENGINES"): - getattr(attr, "COMPAT_ENGINES").add("PLASMA_GAME") +_whitelist_all(properties_texture) del properties_texture @classmethod