-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e3eb6f
commit 7b88654
Showing
7 changed files
with
140 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# “Commons Clause” License Condition v1.0 | ||
# | ||
# See LICENSE for license details. If you did not receive a copy of the license, | ||
# it may be obtained at https://github.com/hugemenace/nd/blob/main/LICENSE. | ||
# | ||
# Software: ND Blender Addon | ||
# License: MIT | ||
# Licensor: T.S. & I.J. (HugeMenace) | ||
|
||
from .. import lib | ||
|
||
|
||
def create_box(text, icon, layout): | ||
box = layout.box() | ||
box.label(text=text, icon=icon) | ||
|
||
return box.column() | ||
|
||
|
||
def render_ops(ops, layout): | ||
for op, icon, label, mode, deprecated in ops: | ||
if not deprecated or lib.preferences.get_preferences().enable_deprecated_features: | ||
row = layout.row(align=True) | ||
row.scale_y = 1.2 | ||
if mode: | ||
row.operator(op, icon=icon, text=label).mode = mode | ||
else: | ||
row.operator(op, icon=icon, text=label) | ||
|
||
|
||
def web_link(url, text, icon, layout): | ||
if icon: | ||
layout.operator("wm.url_open", text=text, icon=icon).url = url | ||
else: | ||
layout.operator("wm.url_open", text=text).url = url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# “Commons Clause” License Condition v1.0 | ||
# | ||
# See LICENSE for license details. If you did not receive a copy of the license, | ||
# it may be obtained at https://github.com/hugemenace/nd/blob/main/LICENSE. | ||
# | ||
# Software: ND Blender Addon | ||
# License: MIT | ||
# Licensor: T.S. & I.J. (HugeMenace) | ||
|
||
# (ID!, ICON!, CUSTOM_LABEL, MODE, DEPRECATED?) | ||
|
||
sketching_ops = [ | ||
("nd.single_vertex", 'DOT', None, None, False), | ||
("nd.make_manifold", 'OUTLINER_DATA_SURFACE', None, None, False), | ||
("nd.geo_lift", 'FACESEL', None, None, False), | ||
("nd.view_align", 'ORIENTATION_VIEW', None, None, False), | ||
("nd.blank_sketch", 'GREASEPENCIL', None, None, True), | ||
] | ||
|
||
power_mod_ops = [ | ||
("nd.bool_vanilla", 'MOD_BOOLEAN', "Difference", 'DIFFERENCE', False), | ||
("nd.bool_vanilla", 'MOD_BOOLEAN', "Union", 'UNION', False), | ||
("nd.bool_vanilla", 'MOD_BOOLEAN', "Intersect", 'INTERSECT', False), | ||
("nd.bool_slice", 'MOD_BOOLEAN', None, None, False), | ||
("nd.bool_inset", 'MOD_BOOLEAN', None, None, False), | ||
("nd.vertex_bevel", 'VERTEXSEL', None, None, False), | ||
("nd.edge_bevel", 'EDGESEL', None, None, False), | ||
("nd.bevel", 'MOD_BEVEL', None, None, False), | ||
("nd.weighted_normal_bevel", 'MOD_BEVEL', None, None, False), | ||
("nd.solidify", 'MOD_SOLIDIFY', None, None, False), | ||
("nd.screw", 'MOD_SCREW', None, None, False), | ||
("nd.profile_extrude", 'EMPTY_SINGLE_ARROW', None, None, False), | ||
("nd.array_cubed", 'PARTICLES', None, None, False), | ||
("nd.circular_array", 'DRIVER_ROTATIONAL_DIFFERENCE', None, None, False), | ||
("nd.square_array", 'LIGHTPROBE_GRID', None, None, True), | ||
("nd.mirror", 'MOD_MIRROR', None, None, False), | ||
("nd.lattice", 'MOD_LATTICE', None, None, False), | ||
] | ||
|
||
generator_ops = [ | ||
("nd.recon_poly", 'SURFACE_NCURVE', None, None, False), | ||
("nd.screw_head", 'CANCEL', None, None, False), | ||
] | ||
|
||
object_names_ops = [ | ||
("nd.name_sync", 'FILE_REFRESH', None, None, False), | ||
("nd.set_lod_suffix", 'ALIASED', "Low LOD", 'LOW', False), | ||
("nd.set_lod_suffix", 'ANTIALIASED', "High LOD", 'HIGH', False), | ||
] | ||
|
||
object_transform_ops = [ | ||
("nd.set_origin", 'TRANSFORM_ORIGINS', None, None, False), | ||
] | ||
|
||
object_properties_ops = [ | ||
("nd.cycle", 'LONGDISPLAY', None, None, False), | ||
("nd.smooth", 'MOD_SMOOTH', None, None, False), | ||
("nd.seams", 'UV_DATA', None, None, False), | ||
("nd.hydrate", 'SHADING_RENDERED', None, None, False), | ||
("nd.clear_vgs", 'GROUP_VERTEX', None, None, False), | ||
("nd.triangulate", 'MOD_TRIANGULATE', None, None, False), | ||
] | ||
|
||
toggle_ops = [ | ||
("nd.toggle_wireframes", 'MOD_WIREFRAME', None, None, False), | ||
("nd.toggle_face_orientation", "ORIENTATION_NORMAL", None, None, False), | ||
("nd.toggle_utils_collection", "OUTLINER_COLLECTION", None, None, False), | ||
("nd.toggle_clear_view", "OUTLINER_DATA_VOLUME", None, None, False), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.