diff --git a/release/scripts/ui/properties_texture.py b/release/scripts/ui/properties_texture.py index bbcac5a974f..d537b5c29c2 100644 --- a/release/scripts/ui/properties_texture.py +++ b/release/scripts/ui/properties_texture.py @@ -45,11 +45,12 @@ class TEXTURE_MT_envmap_specials(bpy.types.Menu): layout.operator("texture.envmap_clear", icon='FILE_REFRESH') layout.operator("texture.envmap_clear_all", icon='FILE_REFRESH') +from properties_material import active_node_mat def context_tex_datablock(context): idblock = context.material if idblock: - return idblock + return active_node_mat(idblock) idblock = context.lamp if idblock: