Skip to content

Commit c4a66c6

Browse files
committed
0_8_3
Updated to Blender 5.1
1 parent 73ca63e commit c4a66c6

5 files changed

Lines changed: 3325 additions & 1524 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Customised Blender UI focused on Modeling and Rigging.
44

5-
\* Updating ... to Blender 2.80.0 Beta+ ... \*
5+
\* Updated ... to Blender 5.1 ... \*
66

77
(This is a WIP designed to make commonly used functions more accessible and less keyboard shortcut dependant and thus more graphics tablet friendly)
88

@@ -39,6 +39,10 @@ Customised Blender UI focused on Modeling and Rigging.
3939

4040
# Required Blender Version
4141

42+
0_8_3 > 5.1
43+
44+
0_8_2 > 3.0
45+
4246
0_8_0 > 2.80
4347

4448
0_7_5 < 2.79

__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"name": "DKS UI",
2121
"description": "UI Customisations",
2222
"author": "DigiKrafting.Studio",
23-
"version": (0, 8, 2),
24-
"blender": (3, 0, 0),
23+
"version": (0, 8, 3),
24+
"blender": (5, 1, 0),
2525
"location": "Properties > Scene, Info Toolbar, 3D View Toolbar",
2626
"wiki_url": "https://github.com/DigiKrafting/blender_addon_ui/wiki",
2727
"tracker_url": "https://github.com/DigiKrafting/blender_addon_ui/issues",

dks_modeling.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,37 @@ def execute(self, context):
5353

5454
return {'FINISHED'}
5555

56+
class object_remove_doubles(bpy.types.Operator):
5657

58+
bl_label = "Remove Doubles"
59+
bl_idname = "dks_modeling.object_remove_doubles"
60+
61+
def execute(self, context):
62+
63+
#bpy.ops.mesh.select_all(action='SELECT')
64+
#bpy.ops.mesh.remove_doubles()
65+
bpy.ops.mesh.remove_doubles(threshold=0.1, use_unselected=True)
66+
67+
return {'FINISHED'}
68+
69+
class object_normals_reset(bpy.types.Operator):
70+
71+
bl_label = "Normals Reset"
72+
bl_idname = "dks_modeling.object_normals_reset"
73+
74+
def execute(self, context):
75+
76+
bpy.ops.mesh.select_all(action='SELECT')
77+
bpy.ops.mesh.normals_tools(mode='RESET')
78+
79+
return {'FINISHED'}
80+
5781
classes = (
5882
object_center,
5983
object_transform_apply,
60-
object_origin_geometry
84+
object_origin_geometry,
85+
object_remove_doubles,
86+
object_normals_reset
6187
)
6288

6389
def register():

dks_ui.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,15 @@ def draw_left(self, context):
155155
workspace_icon_model = "LAYER_USED"
156156
workspace_icon_uv = "LAYER_USED"
157157
workspace_icon_anim = "LAYER_USED"
158+
159+
workspace_modeling_name = 'Default'
160+
161+
for _workspace in bpy.data.workspaces:
162+
163+
if _workspace.name == 'Modeling':
164+
workspace_modeling_name = 'Modeling'
158165

159-
if workspace_ui_mode == 'Modeling':
166+
if workspace_ui_mode == workspace_modeling_name:
160167
workspace_icon_model = "LAYER_ACTIVE"
161168
elif workspace_ui_mode == 'UV Editing':
162169
workspace_icon_uv = "LAYER_ACTIVE"
@@ -167,7 +174,7 @@ def draw_left(self, context):
167174

168175
layout.menu("dks_ui.workspaces", text=workspace_ui_mode)
169176

170-
layout.operator("dks_ui.workspace_set", text="Model", icon=workspace_icon_model).option_workspace = 'Modeling'
177+
layout.operator("dks_ui.workspace_set", text="Model", icon=workspace_icon_model).option_workspace = workspace_modeling_name
171178
layout.operator("dks_ui.workspace_set", text="UV", icon=workspace_icon_uv).option_workspace = 'UV Editing'
172179
layout.operator("dks_ui.workspace_set", text="Anim", icon=workspace_icon_anim).option_workspace = 'Animation'
173180

@@ -179,9 +186,12 @@ def draw_left(self, context):
179186
)
180187

181188
layout.label(text="",icon='THREE_DOTS')
182-
189+
183190
layout.operator('import_scene.fbx',text="FBX",icon="IMPORT")
184191
layout.operator('export_scene.fbx',text="FBX",icon="EXPORT")
192+
193+
layout.operator('import_scene.gltf',text="GLB",icon="IMPORT")
194+
layout.operator('export_scene.gltf',text="GLB",icon="EXPORT")
185195

186196
if 'blender_addon_rizom_uv' in bpy.context.preferences.addons:
187197

0 commit comments

Comments
 (0)