forked from bartvdbraak/blender
Bugfix #25033
Texture face options like "two side" were invisible, unless the top bar "render engine" was set to Game Engine. This is confusing, since 3d window does draw these options well. Added back panel to show default, but with a label warning that the options are not supported for render.
This commit is contained in:
parent
47ca7a5f39
commit
471d304df1
@ -286,7 +286,7 @@ class DATA_PT_texface(MeshButtonsPanel, bpy.types.Panel):
|
||||
ob = context.active_object
|
||||
rd = context.scene.render
|
||||
|
||||
return (context.mode == 'EDIT_MESH') and (rd.engine == 'BLENDER_GAME') and ob and ob.type == 'MESH'
|
||||
return (context.mode == 'EDIT_MESH') and ob and ob.type == 'MESH'
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@ -297,9 +297,12 @@ class DATA_PT_texface(MeshButtonsPanel, bpy.types.Panel):
|
||||
tf = me.faces.active_tface
|
||||
|
||||
if tf:
|
||||
if context.scene.render.engine != 'BLENDER_GAME':
|
||||
col.label(text="Options only supported in Game Engine")
|
||||
|
||||
split = layout.split()
|
||||
col = split.column()
|
||||
|
||||
|
||||
col.prop(tf, "use_image")
|
||||
col.prop(tf, "use_light")
|
||||
col.prop(tf, "hide")
|
||||
|
Loading…
Reference in New Issue
Block a user