Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup and move properties to property groups #715

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion molecularnodes/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .handlers import update_trajectories
from . import entities, operators, props, session, ui
from .utils import add_current_module_to_path
from .ui import pref
from . import pref
from .ui.node_menu import MN_add_node_menu
from .ui.panel import MN_PT_Scene, pt_object_context, change_style_node_menu

Expand Down
4 changes: 2 additions & 2 deletions molecularnodes/entities/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def chain_ids(self) -> Optional[list]:
def create_object(
self,
name: str = "NewMolecule",
style: str = "spheres",
style: str | None = "spheres",
selection: np.ndarray = None,
build_assembly=False,
centre: str = "",
Expand Down Expand Up @@ -275,7 +275,7 @@ def create_object(
verbose=verbose,
)

if style:
if style and style != "":
bl.nodes.create_starting_node_tree(
object=obj, coll_frames=frames, style=style, color=color
)
Expand Down
Loading
Loading