Browse Source

Reenable more default panels...

- All render/baking stuff
- Vertex Colors
- UV Maps
pull/6/head
Adam Johnson 10 years ago
parent
commit
fa2c7e30cb
  1. 20
      korman/render.py

20
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") properties_material.MATERIAL_PT_preview.COMPAT_ENGINES.add("PLASMA_GAME")
del properties_material 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 from bl_ui import properties_texture
for i in dir(properties_texture): _whitelist_all(properties_texture)
attr = getattr(properties_texture, i)
if hasattr(attr, "COMPAT_ENGINES"):
getattr(attr, "COMPAT_ENGINES").add("PLASMA_GAME")
del properties_texture del properties_texture
@classmethod @classmethod

Loading…
Cancel
Save