Skip to content

Commit fa2f27d

Browse files
committed
0_8_0
1 parent 8ad3cbe commit fa2f27d

2 files changed

Lines changed: 27 additions & 8 deletions

File tree

__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"name": "Pipeline",
2121
"description": "3D Pipeline Tools",
2222
"author": "Digiography.Studio",
23-
"version": (0, 7, 5),
23+
"version": (0, 8, 0),
2424
"blender": (2, 79, 0),
2525
"location": "Properties > Scene, Info Toolbar, 3D View Toolbar",
2626
"wiki_url": "https://github.com/Digiography/blender_addon_pipeline/wiki",
@@ -168,6 +168,10 @@ class ds_pipeline_addon_prefs(bpy.types.AddonPreferences):
168168
name="Open Button",
169169
default=True,
170170
)
171+
option_show_file_icons = bpy.props.BoolProperty(
172+
name="File Icons Only",
173+
default=True,
174+
)
171175
option_show_new = bpy.props.BoolProperty(
172176
name="New Button",
173177
default=True,
@@ -295,6 +299,7 @@ def draw(self, context):
295299
box.prop(self, 'option_show_menu_toggle')
296300
box.prop(self, 'option_show_screens_toggle')
297301
box.prop(self, 'option_show_iclone_toggle')
302+
box.prop(self, 'option_show_file_icons')
298303
box.prop(self, 'option_show_new')
299304
box.prop(self, 'option_show_open')
300305
box.prop(self, 'option_show_save')

space_info.py

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,21 +95,35 @@ def draw(self, context):
9595
layout.operator('ds_pipeline.screen_video')
9696

9797
if bpy.context.user_preferences.addons[__package__].preferences.option_show_new:
98-
layout.operator('ds.new',text="New",icon='NEW')
98+
if bpy.context.user_preferences.addons[__package__].preferences.option_show_file_icons:
99+
_text=""
100+
else:
101+
_text="New"
102+
layout.operator('ds.new',text=_text,icon='NEW')
99103

100104
if bpy.context.user_preferences.addons[__package__].preferences.option_show_open:
101-
layout.operator('ds.open',text="Open",icon='FILE_FOLDER')
105+
if bpy.context.user_preferences.addons[__package__].preferences.option_show_file_icons:
106+
_text=""
107+
else:
108+
_text="Open"
109+
layout.operator('ds.open',text=_text,icon='FILE_FOLDER')
102110

103111
if bpy.context.user_preferences.addons[__package__].preferences.option_show_save:
104-
112+
if bpy.context.user_preferences.addons[__package__].preferences.option_show_file_icons:
113+
_text=""
114+
else:
115+
_text="Save"
105116
if bpy.data.is_dirty:
106-
layout.operator('ds.save',text="Save",icon='LINK')
117+
layout.operator('ds.save',text=_text,icon='LINK')
107118
else:
108-
layout.operator('ds.save',text="Save",icon='FILE_TICK')
119+
layout.operator('ds.save',text=_text,icon='FILE_TICK')
109120

110121
if bpy.context.user_preferences.addons[__package__].preferences.option_show_save_as:
111-
112-
layout.operator('ds.save_as',text="Save As",icon='SAVE_AS')
122+
if bpy.context.user_preferences.addons[__package__].preferences.option_show_file_icons:
123+
_text=""
124+
else:
125+
_text="Save As"
126+
layout.operator('wm.save_as_mainfile',text=_text,icon='SAVE_AS')
113127

114128
layout.operator('import_scene.fbx',text="FBX",icon="IMPORT")
115129
layout.operator('ds_fbx.export',text="FBX",icon="EXPORT")

0 commit comments

Comments
 (0)