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):
|
def draw(self, context):
|
||||||
if not hasattr(context, 'material'):
|
if not hasattr(context, 'material'):
|
||||||
return
|
return
|
||||||
self.layout.template_preview(context.material)
|
self.layout.template_preview(context.material, show_buttons=False)
|
||||||
engine = context.scene.mitsuba_engine
|
engine = context.scene.mitsuba_engine
|
||||||
row = self.layout.row(True)
|
row = self.layout.row(True)
|
||||||
row.prop(engine, "preview_depth")
|
row.prop(engine, "preview_depth")
|
||||||
|
|
|
@ -65,7 +65,6 @@ class engine(render_described_context, bpy.types.Panel):
|
||||||
actualChange = cached_binary_path != None
|
actualChange = cached_binary_path != None
|
||||||
cached_binary_path = binary_path
|
cached_binary_path = binary_path
|
||||||
context.scene.mitsuba_engine.binary_path = binary_path
|
context.scene.mitsuba_engine.binary_path = binary_path
|
||||||
if actualChange:
|
|
||||||
print('Updating binary_path to "%s"\n' % binary_path)
|
print('Updating binary_path to "%s"\n' % binary_path)
|
||||||
efutil.write_config_value('mitsuba', 'defaults', 'binary_path', binary_path)
|
efutil.write_config_value('mitsuba', 'defaults', 'binary_path', binary_path)
|
||||||
super().draw(context)
|
super().draw(context)
|
||||||
|
|
Loading…
Reference in New Issue