-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tidy up main menu by creating Replication and Deformation sub m…
…enus to house appropriate operators
- Loading branch information
1 parent
73aa1e7
commit 6cf9461
Showing
4 changed files
with
49 additions
and
11 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,36 @@ | ||
# “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) | ||
|
||
import bpy | ||
from .. import bl_info | ||
from .. import lib | ||
|
||
|
||
class ND_MT_deform_menu(bpy.types.Menu): | ||
bl_label = "Deformation" | ||
bl_idname = "ND_MT_deform_menu" | ||
|
||
|
||
def draw(self, context): | ||
layout = self.layout | ||
layout.operator_context = 'INVOKE_DEFAULT' | ||
layout.operator("nd.lattice", icon='MOD_LATTICE') | ||
|
||
|
||
def draw_item(self, context): | ||
layout = self.layout | ||
layout.menu(ND_MT_deform_menu.bl_idname) | ||
|
||
|
||
def register(): | ||
bpy.utils.register_class(ND_MT_deform_menu) | ||
|
||
|
||
def unregister(): | ||
bpy.utils.unregister_class(ND_MT_deform_menu) |
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