MtsBlend: hide preview buttons (depends on an as-of-yet unapplied patch to blender)

metadata
Wenzel Jakob 2010-11-18 19:14:50 +01:00
parent a333d08c2a
commit e80d72279e
2 changed files with 3 additions and 4 deletions

View File

@ -111,7 +111,7 @@ class MATERIAL_PT_preview_mts(MaterialButtonsPanel, bpy.types.Panel):
def draw(self, context):
if not hasattr(context, 'material'):
return
self.layout.template_preview(context.material)
self.layout.template_preview(context.material, show_buttons=False)
engine = context.scene.mitsuba_engine
row = self.layout.row(True)
row.prop(engine, "preview_depth")

View File

@ -65,9 +65,8 @@ class engine(render_described_context, bpy.types.Panel):
actualChange = cached_binary_path != None
cached_binary_path = binary_path
context.scene.mitsuba_engine.binary_path = binary_path
if actualChange:
print('Updating binary_path to "%s"\n' % binary_path)
efutil.write_config_value('mitsuba', 'defaults', 'binary_path', binary_path)
print('Updating binary_path to "%s"\n' % binary_path)
efutil.write_config_value('mitsuba', 'defaults', 'binary_path', binary_path)
super().draw(context)
class integrator(render_described_context, bpy.types.Panel):