Skip to content

Commit 1f42eae

Browse files
committed
UPBGE: Remove material_mode in python UI scripts.
1 parent bed723a commit 1f42eae

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

release/scripts/startup/bl_ui/properties_game.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -395,21 +395,18 @@ def draw(self, context):
395395

396396
gs = context.scene.game_settings
397397

398-
layout.prop(gs, "material_mode", expand=True)
399-
400-
if gs.material_mode == 'GLSL':
401-
split = layout.split()
398+
split = layout.split()
402399

403-
col = split.column()
404-
col.prop(gs, "use_world_material")
405-
col.prop(gs, "use_glsl_lights", text="Lights")
406-
col.prop(gs, "use_glsl_shaders", text="Shaders")
407-
col.prop(gs, "use_glsl_shadows", text="Shadows")
400+
col = split.column()
401+
col.prop(gs, "use_world_material")
402+
col.prop(gs, "use_glsl_lights", text="Lights")
403+
col.prop(gs, "use_glsl_shaders", text="Shaders")
404+
col.prop(gs, "use_glsl_shadows", text="Shadows")
408405

409-
col = split.column()
410-
col.prop(gs, "use_glsl_ramps", text="Ramps")
411-
col.prop(gs, "use_glsl_nodes", text="Nodes")
412-
col.prop(gs, "use_glsl_extra_textures", text="Extra Textures")
406+
col = split.column()
407+
col.prop(gs, "use_glsl_ramps", text="Ramps")
408+
col.prop(gs, "use_glsl_nodes", text="Nodes")
409+
col.prop(gs, "use_glsl_extra_textures", text="Extra Textures")
413410

414411

415412
class RENDER_PT_game_system(RenderButtonsPanel, Panel):

release/scripts/startup/bl_ui/space_view3d.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3222,21 +3222,17 @@ def draw(self, context):
32223222

32233223
view = context.space_data
32243224
scene = context.scene
3225-
gs = scene.game_settings
32263225
obj = context.object
32273226

32283227
col = layout.column()
32293228

3230-
if not scene.render.use_shading_nodes:
3231-
col.prop(gs, "material_mode", text="")
3232-
32333229
if view.viewport_shade == 'SOLID':
32343230
col.prop(view, "show_textured_solid")
32353231
col.prop(view, "use_matcap")
32363232
if view.use_matcap:
32373233
col.template_icon_view(view, "matcap_icon")
32383234
if view.viewport_shade == 'TEXTURED' or context.mode == 'PAINT_TEXTURE':
3239-
if scene.render.use_shading_nodes or gs.material_mode != 'GLSL':
3235+
if scene.render.use_shading_nodes:
32403236
col.prop(view, "show_textured_shadeless")
32413237

32423238
col.prop(view, "show_backface_culling")

0 commit comments

Comments
 (0)