Fix T66699 EEVEE: Material Preview "World" option doesn't work
Just hide the button for now.
This commit is contained in:
parent
cdd223039b
commit
ed4cbde967
Notes:
blender-bot
2023-02-14 01:53:53 +01:00
Referenced by issue #66699, Material Preview "World" option doesn't work in Eevee
|
@ -72,6 +72,7 @@
|
|||
#include "BKE_particle.h"
|
||||
#include "BKE_curveprofile.h"
|
||||
#include "BKE_report.h"
|
||||
#include "BKE_scene.h"
|
||||
#include "BKE_screen.h"
|
||||
#include "BKE_shader_fx.h"
|
||||
|
||||
|
@ -2845,8 +2846,13 @@ void uiTemplatePreview(uiLayout *layout,
|
|||
col = uiLayoutColumn(row, true);
|
||||
uiLayoutSetScaleX(col, 1.5);
|
||||
uiItemR(col, &material_ptr, "preview_render_type", UI_ITEM_R_EXPAND, "", ICON_NONE);
|
||||
uiItemS(col);
|
||||
uiItemR(col, &material_ptr, "use_preview_world", 0, "", ICON_WORLD);
|
||||
|
||||
/* EEVEE preview file has baked lighting so use_preview_world has no effect,
|
||||
* just hide the option until this feature is supported. */
|
||||
if (!BKE_scene_uses_blender_eevee(CTX_data_scene(C))) {
|
||||
uiItemS(col);
|
||||
uiItemR(col, &material_ptr, "use_preview_world", 0, "", ICON_WORLD);
|
||||
}
|
||||
}
|
||||
|
||||
if (pr_texture) {
|
||||
|
|
Loading…
Reference in New Issue