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

Scene grababbles refactor #16

Merged
merged 1 commit into from
May 8, 2024
Merged
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
12 changes: 1 addition & 11 deletions components/__init__.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,19 @@
from . import custom_tags, grabbable, rigid_body, physics_shape, networked_behavior, networked_transform, networked_animation, capturable, networked_material, networked_object_material, networked_object_properties
from . import custom_tags, networked_behavior, networked_animation, networked_material, networked_object_material, networked_object_properties


def register():
custom_tags.register()
grabbable.register()
rigid_body.register()
physics_shape.register()
networked_behavior.register()
networked_transform.register()
networked_animation.register()
networked_material.register()
networked_object_material.register()
networked_object_properties.register()
capturable.register()


def unregister():
capturable.unregister()
networked_behavior.unregister()
networked_transform.unregister()
networked_animation.unregister()
networked_material.unregister()
networked_object_material.unregister()
rigid_body.unregister()
physics_shape.unregister()
grabbable.unregister()
custom_tags.unregister()
networked_object_properties.unregister()
23 changes: 0 additions & 23 deletions components/capturable.py

This file was deleted.

2 changes: 1 addition & 1 deletion components/custom_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def execute(self, context):
class CustomTags(HubsComponent):
_definition = {
'name': 'custom-tags',
'display_name': 'BG Custom Tags',
'display_name': 'Custom Tags',
'category': Category.OBJECT,
'node_type': NodeType.NODE,
'panel_type': [PanelType.OBJECT, PanelType.BONE],
Expand Down
39 changes: 0 additions & 39 deletions components/grabbable.py

This file was deleted.

22 changes: 0 additions & 22 deletions components/networked_transform.py

This file was deleted.

97 changes: 0 additions & 97 deletions components/physics_shape.py

This file was deleted.

149 changes: 0 additions & 149 deletions components/rigid_body.py

This file was deleted.

4 changes: 2 additions & 2 deletions consts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Nodes that are deprecated and are replaced with hardcoded nodes but we still load the nodes
# from the JSON as we want the to work for backwards compatibility but we don't want them to show in
# the categories
from .components import networked_animation, networked_behavior, networked_transform, rigid_body, physics_shape
from io_hubs_addon.components.definitions import text, video, audio, media_frame, visible
from .components import networked_animation, networked_behavior
from io_hubs_addon.components.definitions import text, video, audio, media_frame, visible, rigid_body, physics_shape, networked_transform
DEPRECATED_NODES = [
"BGNode_hubs_material_set",
"BGNode_hubs_material_getColor",
Expand Down