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