-
-
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: split applicable util ops into dedicated scene and export menus
- Loading branch information
1 parent
ecd49d9
commit 6422a49
Showing
6 changed files
with
111 additions
and
8 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,42 @@ | ||
# ███╗ ██╗██████╗ | ||
# ████╗ ██║██╔══██╗ | ||
# ██╔██╗ ██║██║ ██║ | ||
# ██║╚██╗██║██║ ██║ | ||
# ██║ ╚████║██████╔╝ | ||
# ╚═╝ ╚═══╝╚═════╝ | ||
# | ||
# “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) | ||
# | ||
# --- | ||
# Contributors: Tristo (HM) | ||
# --- | ||
|
||
import bpy | ||
from . import ops | ||
from . common import render_ops | ||
|
||
|
||
class ND_MT_export_menu(bpy.types.Menu): | ||
bl_label = "Export" | ||
bl_idname = "ND_MT_export_menu" | ||
|
||
|
||
def draw(self, context): | ||
layout = self.layout | ||
layout.operator_context = 'INVOKE_DEFAULT' | ||
render_ops(ops.export_ops, layout, new_row=False, use_separator=True) | ||
|
||
|
||
def register(): | ||
bpy.utils.register_class(ND_MT_export_menu) | ||
|
||
|
||
def unregister(): | ||
bpy.utils.unregister_class(ND_MT_export_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
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,42 @@ | ||
# ███╗ ██╗██████╗ | ||
# ████╗ ██║██╔══██╗ | ||
# ██╔██╗ ██║██║ ██║ | ||
# ██║╚██╗██║██║ ██║ | ||
# ██║ ╚████║██████╔╝ | ||
# ╚═╝ ╚═══╝╚═════╝ | ||
# | ||
# “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) | ||
# | ||
# --- | ||
# Contributors: Tristo (HM) | ||
# --- | ||
|
||
import bpy | ||
from . import ops | ||
from . common import render_ops | ||
|
||
|
||
class ND_MT_scene_menu(bpy.types.Menu): | ||
bl_label = "Scene" | ||
bl_idname = "ND_MT_scene_menu" | ||
|
||
|
||
def draw(self, context): | ||
layout = self.layout | ||
layout.operator_context = 'INVOKE_DEFAULT' | ||
render_ops(ops.scene_ops, layout, new_row=False, use_separator=True) | ||
|
||
|
||
def register(): | ||
bpy.utils.register_class(ND_MT_scene_menu) | ||
|
||
|
||
def unregister(): | ||
bpy.utils.unregister_class(ND_MT_scene_menu) |