MtsBlend: hide preview buttons (depends on an as-of-yet unapplied patch to blender)
parent
a333d08c2a
commit
e80d72279e
|
@ -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")
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue